API reference

PanelScaleInLocalState Class

Holds the per-entity state for a panel scale-in animation. Created when a PanelScaleInAnimation component is attached to an entity. The animation interpolates the panel's scale from an initial value to Vector3(1.0f) over the specified duration, creating a grow-in visual effect for UI panels.

Signature

data class PanelScaleInLocalState(
    val startTimeInMs: Long,
    val durationInMs: Long,
    val initialScale: Vector3,
    var isComplete: Boolean = false,
)

Constructors

PanelScaleInLocalState ( startTimeInMs , durationInMs , initialScale , isComplete )
Signature
constructor(
    startTimeInMs: Long,
    durationInMs: Long,
    initialScale: Vector3,
    isComplete: Boolean = false,
)
Parameters
startTimeInMs: Long  Timestamp in milliseconds when the scale-in animation began. Used with DataModel.getLocalDataModelTime() to calculate elapsed progress each frame.
durationInMs: Long  Total duration of the scale-in animation in milliseconds. The panel's scale is interpolated linearly from initialScale to full size over this period.
initialScale: Vector3  The starting scale of the panel as a Vector3. Typically a small value like Vector3(0.1f) for a dramatic grow-in effect, or Vector3(0.8f) for a subtle pop.
isComplete: Boolean  Whether the animation has finished. Set to true when elapsed time exceeds durationInMs, at which point the panel's scale is clamped to Vector3(1.0f).
Returns
PanelScaleInLocalState

Properties

durationInMs : Long
[Get]
Total duration of the scale-in animation in milliseconds. The panel's scale is interpolated linearly from initialScale to full size over this period.
Signature
val durationInMs: Long
initialScale : Vector3
[Get]
The starting scale of the panel as a Vector3. Typically a small value like Vector3(0.1f) for a dramatic grow-in effect, or Vector3(0.8f) for a subtle pop.
Signature
val initialScale: Vector3
isComplete : Boolean
[Get][Set]
Whether the animation has finished. Set to true when elapsed time exceeds durationInMs, at which point the panel's scale is clamped to Vector3(1.0f).
Signature
var isComplete: Boolean
startTimeInMs : Long
[Get]
Timestamp in milliseconds when the scale-in animation began. Used with DataModel.getLocalDataModelTime() to calculate elapsed progress each frame.
Signature
val startTimeInMs: Long