docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IModelVisibilityAccessor

    Contract to implement a getter and setter for the model visibility.

    Namespace: Unity.Cloud.DataStreaming.Runtime
    Assembly: Unity.Cloud.DataStreaming.Runtime.dll
    Syntax
    public interface IModelVisibilityAccessor
    Remarks

    A model that is not visible still uses memory and continues to stream its content based on the IStageObservers attached to the IStage.

    Methods

    Get()

    Gets the visibility.

    Declaration
    bool Get()
    Returns
    Type Description
    bool

    true if the model is currently visible; otherwise, false.

    Set(bool)

    Sets the visibility.

    Declaration
    void Set(bool visibility)
    Parameters
    Type Name Description
    bool visibility

    The new visibility.

    Remarks

    If visibility is the same value as the current visibility, this method does nothing.

    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)