Interface: SsPartOverride
Defined in: packages/react-native-spritestudio/src/core/parts.ts:47
What to override on one part. Every field is optional and an omitted one is left to the animation — this is a patch, not a replacement.
Properties
blendOp?
optionalblendOp?:SsBlendOpValue
Defined in: packages/react-native-spritestudio/src/core/parts.ts:74
cascade?
optionalcascade?:boolean
Defined in: packages/react-native-spritestudio/src/core/parts.ts:64
Propagates a hide: true to descendants. Off by default, as everywhere else in the family: a keyframed hide never cascades in SpriteStudio, so cascading is the opt-in.
cell?
optionalcell?:SsCellRef
Defined in: packages/react-native-spritestudio/src/core/parts.ts:75
color?
optionalcolor?:string|number
Defined in: packages/react-native-spritestudio/src/core/parts.ts:73
A colour, as anything Skia parses ('#f00', 'rgba(...)') or a packed 0xRRGGBBAA number.
Strings go through Skia.Color rather than a parser written here, for the same reason hashes go through the Brain: a second implementation of a shared notion is one more than can be kept in agreement.
hide?
optionalhide?:boolean
Defined in: packages/react-native-spritestudio/src/core/parts.ts:58
true force-hides the part. false, like omitting the key, clears this player's hide override, so the animation's own hide applies again; it does not show a part the animation hides.
Spelled the family's way round. Every sibling Player takes setPartVisibilityOverride(part, hide, …), because the Brain's override is a force-hide; a map that said visible would make porting a question of inverting every boolean, with nothing to catch one left un-inverted.
priority?
optionalpriority?:SsOverridePriorityValue
Defined in: packages/react-native-spritestudio/src/core/parts.ts:77
Defaults to SsOverridePriority.holdUntilNextAnimation.