One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

BehaviorTreeActionHandler

protocol · iOS 27.0+ · SDK 27.1

protocol BehaviorTreeActionHandler : ActionHandlerProtocol

Behavior Tree-specific event handlers that allow an `ActionResult` to be returned from the handler. Behavior trees send Started, Updated and Ended events. Optionally subscribe directly to any of these events in order to override default event handling in cases when conforming a new, custom event handler type. Example: ```swift struct MyAction: BehaviorTreeAction, Codable { // ... } struct MyActionHandler: BehaviorTreeActionHandler { typealias ActionType = MyAction //... add some optional state data here. // Action updated event handler. public mutating func actionUpdatedWithResult(event: EventType) -> ActionResult? { // ... handle the 'updated' event. // Return the action result. return .success } } // The handler must be registered in order to receive events: MyActionHandler.register { event in return MyActionHandler() } ```

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

14 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

BehaviorTreeActionHandler.actionStarted(event:)

The iOS SDK compiler rejected this binding: cannot access type alias 'EventType' from 'BehaviorTreeActionHandler'; use a concrete type or generic parameter base instead

BehaviorTreeActionHandler.actionUpdated(event:)

The iOS SDK compiler rejected this binding: cannot access type alias 'EventType' from 'BehaviorTreeActionHandler'; use a concrete type or generic parameter base instead

BehaviorTreeActionHandler.actionEnded(event:)

The iOS SDK compiler rejected this binding: cannot access type alias 'EventType' from 'BehaviorTreeActionHandler'; use a concrete type or generic parameter base instead

BehaviorTreeActionHandler.actionSkipped(event:)

The iOS SDK compiler rejected this binding: cannot access type alias 'EventType' from 'BehaviorTreeActionHandler'; use a concrete type or generic parameter base instead

BehaviorTreeActionHandler.actionPaused(event:)

The iOS SDK compiler rejected this binding: cannot access type alias 'EventType' from 'BehaviorTreeActionHandler'; use a concrete type or generic parameter base instead

BehaviorTreeActionHandler.actionResumed(event:)

The iOS SDK compiler rejected this binding: cannot access type alias 'EventType' from 'BehaviorTreeActionHandler'; use a concrete type or generic parameter base instead

BehaviorTreeActionHandler.actionTerminated(event:)

The iOS SDK compiler rejected this binding: cannot access type alias 'EventType' from 'BehaviorTreeActionHandler'; use a concrete type or generic parameter base instead

BehaviorTreeActionHandler.actionStartedWithResult(event:)

The iOS SDK compiler rejected this binding: cannot access type alias 'EventType' from 'BehaviorTreeActionHandler'; use a concrete type or generic parameter base instead

BehaviorTreeActionHandler.actionUpdatedWithResult(event:)

The iOS SDK compiler rejected this binding: cannot access type alias 'EventType' from 'BehaviorTreeActionHandler'; use a concrete type or generic parameter base instead

BehaviorTreeActionHandler.actionEndedWithResult(event:)

The iOS SDK compiler rejected this binding: cannot access type alias 'EventType' from 'BehaviorTreeActionHandler'; use a concrete type or generic parameter base instead

BehaviorTreeActionHandler.actionSkippedWithResult(event:)

The iOS SDK compiler rejected this binding: cannot access type alias 'EventType' from 'BehaviorTreeActionHandler'; use a concrete type or generic parameter base instead

BehaviorTreeActionHandler.actionPausedWithResult(event:)

The iOS SDK compiler rejected this binding: cannot access type alias 'EventType' from 'BehaviorTreeActionHandler'; use a concrete type or generic parameter base instead

BehaviorTreeActionHandler.actionResumedWithResult(event:)

The iOS SDK compiler rejected this binding: cannot access type alias 'EventType' from 'BehaviorTreeActionHandler'; use a concrete type or generic parameter base instead

BehaviorTreeActionHandler.actionTerminatedWithResult(event:)

The iOS SDK compiler rejected this binding: cannot access type alias 'EventType' from 'BehaviorTreeActionHandler'; use a concrete type or generic parameter base instead

All RealityFoundation types →