Interface: SsUserDataEvent
Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:156
One authored user-data key the playhead crossed.
Four independent payloads, each optional, which is how SpriteStudio authors them — a key can carry an integer and a string. The has* flags are not decoration: integer: 0 is a value an author can mean.
Properties
frameNo
frameNo:
number
Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:161
The frame the key sits on, not the frame it was noticed on.
hasInteger
hasInteger:
boolean
Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:170
hasPoint
hasPoint:
boolean
Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:172
hasRect
hasRect:
boolean
Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:175
hasText
hasText:
boolean
Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:177
integer
integer:
number
Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:171
partIndex
partIndex:
number
Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:157
partName
partName:
string
Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:159
The authored part name, so a caller need not keep an index table.
pointX
pointX:
number
Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:173
pointY
pointY:
number
Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:174
rect
rect:
SsBox
Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:176
source
source:
number
Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:168
The source that fired it — the handle getTrackMainSource and addTrackSource give out. With no animation mixing this is always track 0's main source; it tells two blended animations' keys apart once a second source fires too. frameNo is a frame of that source's animation.
text
text:
string
Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:178