Skip to content

@modoki/engine / index / getDeform2DVersion

Function: getDeform2DVersion()

getDeform2DVersion(entityId): number

A monotonic version reflecting this entity's LATEST current-frame deform write, or 0 if the entity has no deform this frame. skin2DSystem compares it against the last-seen value to decide whether to re-skin an otherwise-idle pose. Because the counter is global-monotonic and never reset, a re-written deform always yields a strictly greater value than the prior frame.

Parameters

entityId

number

Returns

number

Built with Modoki.