Skip to main content

Transition$1

ZEPETO.Character.Controller.Transition$1

Generic class for defining transitions between states in a state machine.

Type parameters

NameDescription
TEnumType of state, constrained to be an enumeration.

Hierarchy

Constructors

constructor

new Transition$1<TEnum>()

Type parameters

NameDescription
TEnumDefines the type that influences the available options, functionality, and behavior of the Transition$1 object.

Inherited from

TransitionBase$1.constructor

Accessors

Duration

get Duration(): number

Time duration the transition should take from start to end (in seconds).

Returns

number

Inherited from

TransitionBase$1.Duration

set Duration(value): void

Time duration the transition should take from start to end (in seconds).

Parameters

NameType
valuenumber

Returns

void

Inherited from

TransitionBase$1.Duration


From

get From(): TEnum

State from which the transition starts.

Returns

TEnum


IsRunning

get IsRunning(): boolean

Indicates whether the transition is currently in the status of StateStatus.Enter or StateStatus.Update.

Returns

boolean

Inherited from

TransitionBase$1.IsRunning


Status

get Status(): StateStatus

Status of the transition.

Returns

StateStatus

Inherited from

TransitionBase$1.Status


To

get To(): TEnum

State to which the transition will occur.

Returns

TEnum

Inherited from

TransitionBase$1.To

Methods

Check

Check(): boolean

Checks if the conditions for invoking a transition are met.

Returns

boolean

true if the transition's conditions are met.

Inherited from

TransitionBase$1.Check