Contents

BehaviorTreeAction

A protocol that defines an action that a behavior tree action node can use.

Declaration

protocol BehaviorTreeAction : EntityAction

Overview

Conform to this protocol as:

struct CustomBehaviorTreeAction: BehaviorTreeAction, Codable {

    public var isReversible: Bool { false }
    public var isAdditive: Bool { false }
    public var animatedValueType: (any AnimatableData.Type)? { nil }

    // Add your action-specific properties, functions and subscriptions here.
}

Topics

Subscribing to events

Type Methods

See Also

Behavior trees