Options
Menu

Class AnimatorEvent

Dispatched to notify changes in an animator's state.

Hierarchy

  • EventBase

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Create a new AnimatorEvent object.

    Parameters

    • type: string

      The event type.

    • animator: AnimatorBase

      The animator object that is the subject of this event.

    Returns AnimatorEvent

Properties

target

target: any

Reference to target object

property

target

type

Object

type

type: string

Type of event

property

type

type

String

Static CYCLE_COMPLETE

CYCLE_COMPLETE: string

Defines the value of the type property of a cycle complete event object.

Static START

START: string

Defines the value of the type property of a start event object.

Static STOP

STOP: string

Defines the value of the type property of a stop event object.

Accessors

animator

  • Returns AnimatorBase

Methods

clone

  • Clones the event.

    Returns AnimatorEvent

    An exact duplicate of the current event object.

Generated using TypeDoc