Class PolicyGraphUpdateSystem | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class PolicyGraphUpdateSystem

    A system which extends a policy graph given newly explored actions and newly reached states

    Inheritance
    System.Object
    PolicyGraphUpdateSystem
    Namespace: Unity.AI.Planner
    Syntax
    public abstract class PolicyGraphUpdateSystem : ComponentSystem

    Methods

    IsTerminal(Entity)

    Overridable method (with default support for IStateTermination) that determines if a state is terminal (i.e. should not be expanded further)

    Declaration
    protected virtual bool IsTerminal(Entity stateEntity)
    Parameters
    Type Name Description
    Entity stateEntity

    Entity for the state

    Returns
    Type Description
    System.Boolean

    Whether the state is terminal or not

    OnCreateManager()

    Declaration
    protected override void OnCreateManager()

    OnDestroyManager()

    Declaration
    protected override void OnDestroyManager()

    OnUpdate()

    Declaration
    protected override void OnUpdate()

    StateEquals(Entity, Entity)

    Determine if two states are equal

    Declaration
    protected abstract bool StateEquals(Entity lhsStateEntity, Entity rhsStateEntity)
    Parameters
    Type Name Description
    Entity lhsStateEntity

    Entity for the left-hand side of the state equality comparison

    Entity rhsStateEntity

    Entity for the right-hand side of the state equality comparison

    Returns
    Type Description
    System.Boolean

    Whether the states are equal

    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