docs.unity3d.com
    显示 / 隐藏目录

    Interface IMatchVisibilityHandler

    Defines an action that controls the visible/enabled state of objects

    Namespace: Unity.MARS
    Syntax
    public interface IMatchVisibilityHandler : IAction, ISimulatable

    Methods

    FilterVisibleObjects(QueryState, QueryResult, List<GameObject>, List<GameObject>)

    Called when an object should decide whether or not objects it is associated with should be visible

    Declaration
    void FilterVisibleObjects(QueryState newState, QueryResult queryResult, List<GameObject> objectsToActivate, List<GameObject> objectsToDeactivate)
    Parameters
    Type Name Description
    QueryState newState

    The tracking state this object is switching to

    QueryResult queryResult

    Data associated with this event

    List<GameObject> objectsToActivate

    List that stores which objects this handler wants to enable

    List<GameObject> objectsToDeactivate

    List that stores which objects this handler wants to disable

    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)