Skip to main content

Class UpdateState

State responsible for updating the clip over time, handling visual expiration and autoplay timing. Invokes update events each frame and triggers expire event when lifetime is reached. Advances clip to end state once autoplay duration has elapsed.

public class UpdateState : IClipState

Inheritance​

object→UpdateState

Implements​

IClipState

Methods​

Enter(TypewriterClip)​

Called when the clip enters this state.

public void Enter(TypewriterClip clip)

Parameters​

NameTypeDescription
clipTypewriterClipThe owning TypewriterClip instance.

Update(float)​

Called every frame (or update tick) while in this state.

public void Update(float deltaTime)

Parameters​

NameTypeDescription
deltaTimefloatTime elapsed since last update call.
  • Methods
    • Enter(TypewriterClip)
    • Update(float)