Interface ICustomActionEffect<TStateData> | AI Planner | 0.2.4-preview.3
docs.unity.cn
    Show / Hide Table of Contents

    Interface ICustomActionEffect<TStateData>

    Custom implementation of an action effect

    Namespace: Unity.AI.Planner.Traits
    Syntax
    public interface ICustomActionEffect<TStateData>
        where TStateData : struct, IStateData
    Type Parameters
    Name Description
    TStateData

    State data Type

    Methods

    ApplyCustomActionEffectsToState(TStateData, ActionKey, TStateData)

    Apply custom modifications on a state given an action

    Declaration
    void ApplyCustomActionEffectsToState(TStateData originalState, ActionKey action, TStateData newState)
    Parameters
    Type Name Description
    TStateData originalState

    State before basic effects were applied

    ActionKey action

    Key index of the action evaluated

    TStateData newState

    State after basic effects were applied

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 13 November 2020