docs.unity3d.com
    Show / Hide Table of Contents

    Interface IMatchVisibilityHandler

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

    Namespace: Unity.MARS.Query
    Syntax
    [MovedFrom("Unity.MARS")]
    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

    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