Skip to content

Interface: SsSignalEvent ​

Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:281

One authored signal the playhead crossed: a named command and its parameters, for the app to dispatch however it likes.

Where user data is a bag of values and audio names a file, a signal is the one that means do something — SpriteStudio's way of letting an animator call into the game. Nothing here interprets commandId; that is the whole point of it.

Signals switched off are not reported. PartAttributeSignal.active is authoring state — a command left in the timeline but disabled — not something that happened, and every sibling Player drops them for the same reason.

Properties ​

commandId ​

commandId: string

Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:291

The authored command name. Uninterpreted.


frameNo ​

frameNo: number

Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:286

The frame the key sits on, not the frame it was noticed on.


params ​

params: SsSignalParam[]

Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:292


partIndex ​

partIndex: number

Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:282


partName ​

partName: string

Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:284

The authored part name, so a caller need not keep an index table.


source ​

source: number

Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:288

The source that fired it — see SsUserDataEvent.source.