docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IMatchVisibilityHandler

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

    Namespace: Unity.MARS.Query
    Assembly: Unity.MARS.dll
    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

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)