data class PanelScaleInLocalState(val startTimeInMs: Long, val durationInMs: Long, val initialScale: Vector3, var isComplete: Boolean = false)
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 |
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 |