Interface ITraitBasedPlanExecutor | AI Planner | 0.2.4-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Interface ITraitBasedPlanExecutor

    An interface denoting the implementation of a plan executor for trait-based planning domains.

    Inherited Members
    IPlanExecutor.Plan
    IPlanExecutor.CurrentExecutorStateKey
    IPlanExecutor.CurrentPlanStateKey
    IPlanExecutor.CurrentStateData
    IPlanExecutor.CurrentActionKey
    IPlanExecutor.Status
    IPlanExecutor.SetPlan(IPlan)
    IPlanExecutor.UpdateCurrentState(IStateKey)
    IPlanExecutor.UpdateCurrentState(IStateData)
    IPlanExecutor.ReadyToAct()
    IPlanExecutor.ExecuteNextAction(IActionKey)
    IPlanExecutor.StopExecution()
    IPlanExecutor.GetActionName(IActionKey)
    IPlanExecutor.GetActionParametersInfo(IStateKey, IActionKey)
    Namespace: Unity.AI.Planner.Traits
    Syntax
    public interface ITraitBasedPlanExecutor : IPlanExecutor, IDisposable

    Methods

    SetExecutionSettings(MonoBehaviour, ActionExecutionInfo[], PlanExecutionSettings, Action<IActionKey>, Action<IStateKey>, Action<IStateKey>)

    Specifies the settings for the execution of the plan, as well as callbacks to invoke under certain conditions.

    Declaration
    void SetExecutionSettings(MonoBehaviour actor, ActionExecutionInfo[] actionExecutionInfos, PlanExecutionSettings executionSettings, Action<IActionKey> onActionComplete = null, Action<IStateKey> onTerminalStateReached = null, Action<IStateKey> onUnexpectedState = null)
    Parameters
    Type Name Description
    MonoBehaviour actor

    A MonoBehaviour used to start and stop coroutines.

    ActionExecutionInfo[] actionExecutionInfos

    Action execution information for the actions contained in the problem definition.

    PlanExecutionSettings executionSettings

    Settings governing the execution of the plan

    Action<IActionKey> onActionComplete

    A callback to invoke at the completion of each action

    Action<IStateKey> onTerminalStateReached

    A callback to invoke once a terminal state is reached by the executor

    Action<IStateKey> onUnexpectedState

    A callback to invoke if the executor enters a state not contained within the plan

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023