Interface IStateTermination | Package Manager UI website
docs.unity.cn
    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 © 2019 Unity Technologies
    Generated by DocFX