English
Interface: SSPartFollowHost<T>
Defined in: ssplayer-core/dist/index.d.ts:5361
How a host parents, shows and transforms the objects it makes follow parts.
Type Parameters
T
T
Methods
addChild()
addChild(
target):void
Defined in: ssplayer-core/dist/index.d.ts:5363
Parent target under the player. Only called when addAsChild is on.
Parameters
target
T
Returns
void
applyAffine()
applyAffine(
target,affine):void
Defined in: ssplayer-core/dist/index.d.ts:5368
Write the exact affine [m00, m01, m10, m11, tx, ty] (mirroring intact; a part's own skew is not carried — the runtime keeps it out of the world matrix).
Parameters
target
T
affine
Returns
void
applyDecomposed()
applyDecomposed(
target,transform,axes):void
Defined in: ssplayer-core/dist/index.d.ts:5374
Write only the enabled axes, leaving the target's own values for the rest. transform and axes are scratch objects reused across attachments and frames — read them, do not retain them.
Parameters
target
T
transform
axes
Returns
void
removeChild()
removeChild(
target):void
Defined in: ssplayer-core/dist/index.d.ts:5365
Undo addChild. Must itself check the target is still ours.
Parameters
target
T
Returns
void
setVisible()
setVisible(
target,visible):void
Defined in: ssplayer-core/dist/index.d.ts:5366
Parameters
target
T
visible
boolean
Returns
void