Class: UITransitionSystem
Drives UITransitionComponent. PreRender, after layout / scrolling and before TransformSystem: advances each transition (frame time, scaled by the game's time scale, held while paused), then writes the pose — position / scale / rotation offsets and an opacity factor — into Transform and UIOpacity. UITransitionRestoreSystem puts the original values back once the transform and opacity steps have used them, so the effect never lands in saved data and layout sees the entity's own values next frame.
Only while the game runs (or for an editor preview). When the game starts, each transition applies its onStart; one spawned during the run applies it when bound.
Extends
BoundComponentSystem<UITransitionComponent,BoundTransition>
Constructors
Constructor
ts
new UITransitionSystem(): UITransitionSystem;Returns
UITransitionSystem
Inherited from
ts
BoundComponentSystem<UITransitionComponent, BoundTransition>.constructorProperties
| Property | Modifier | Type | Default value | Inherited from |
|---|---|---|---|---|
enabled | public | boolean | true | BoundComponentSystem.enabled |
parallel | public | boolean | false | BoundComponentSystem.parallel |
Methods
Entries()
ts
Entries(): IterableIterator<BoundTransition>;The restore half reads the entries.
Returns
IterableIterator<BoundTransition>
GetName()
ts
GetName(): string;Returns
string
Overrides
ts
BoundComponentSystem.GetNameGetOrder()
ts
GetOrder(): SystemOrder;Returns
SystemOrder
GetPhase()
ts
GetPhase(): SystemPhase;Returns
Overrides
ts
BoundComponentSystem.GetPhaseGetWrites()
ts
GetWrites(): readonly string[];Returns
readonly string[]
OnClose()
ts
OnClose(): void;Returns
void
Inherited from
ts
BoundComponentSystem.OnCloseOnInit()
ts
OnInit(engine): void;Parameters
| Parameter | Type |
|---|---|
engine | IEngine |
Returns
void
Inherited from
ts
BoundComponentSystem.OnInitOnRender()
ts
OnRender(scene, _renderer): void;Parameters
| Parameter | Type |
|---|---|
scene | Scene |
_renderer | IRenderer |
Returns
void
Overrides
ts
BoundComponentSystem.OnRenderOnRendererChanged()
ts
OnRendererChanged(_renderer): void;Parameters
| Parameter | Type |
|---|---|
_renderer | IRenderer |
Returns
void
Inherited from
ts
BoundComponentSystem.OnRendererChangedOnStart()
ts
OnStart(scene, _renderer): void;Parameters
| Parameter | Type |
|---|---|
scene | Scene |
_renderer | IRenderer |
Returns
void
Inherited from
ts
BoundComponentSystem.OnStartOnStop()
ts
OnStop(_scene): void;Parameters
| Parameter | Type |
|---|---|
_scene | Scene |
Returns
void
Inherited from
ts
BoundComponentSystem.OnStopOnUpdate()
ts
OnUpdate(_scene, _dt): void | Promise<void>;Parameters
| Parameter | Type |
|---|---|
_scene | Scene |
_dt | number |
Returns
void | Promise<void>
Inherited from
ts
BoundComponentSystem.OnUpdate