dacha
    Preparing search index...

    Class Behaviors

    Lists the behaviors of an actor. BehaviorSystem creates an instance of each.

    Hierarchy (View Summary)

    Index
    actor?: Actor

    The actor that has this component. It is undefined until the component is added to an actor.

    list: BehaviorConfig[] = []

    The behaviors of the actor. BehaviorSystem reads the list once, when it creates the behavior instances. To change the behaviors, replace the whole component with actor.setComponent.

    • Returns the component of the same class on the parent actor.

      Returns Component<object> | undefined

      The component, or undefined if the actor has no parent actor or the parent has no such component.