Interface IStateTermination | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IStateTermination

    The interface for state termination criteria

    Namespace: Unity.AI.Planner.DomainLanguage.TraitBased
    Syntax
    public interface IStateTermination : IDisposable

    Properties

    ComponentTypes

    The set of components used to filter domain objects on which the termination check operates

    Declaration
    NativeArray<ComponentType> ComponentTypes { get; }
    Property Value
    Type Description
    NativeArray<ComponentType>

    Methods

    ShouldTerminate(EntityManager, Entity)

    Determines if the state meets termination criteria if a domain object satisfies the required conditions

    Declaration
    bool ShouldTerminate(EntityManager entityManager, Entity domainObjectEntity)
    Parameters
    Type Name Description
    EntityManager entityManager

    The entity manager for the world in which the entity exists

    Entity domainObjectEntity

    The domain object entity for which the termination criteria is evaluated

    Returns
    Type Description
    System.Boolean

    Whether the termination criteria is satisfied for the given domain object

    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