docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class StageObserverFactory

    Provides methods to build a IStageObserver.

    Inheritance
    object
    StageObserverFactory
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.DataStreaming.Runtime
    Assembly: Unity.Cloud.DataStreaming.Runtime.dll
    Syntax
    public static class StageObserverFactory

    Fields

    DefaultScreenSpaceError

    Default value used when a screen space error is not specified when creating a camera observer.

    Declaration
    public const float DefaultScreenSpaceError = 4
    Field Value
    Type Description
    float
    See Also
    CreateCameraObserver(Camera, float)

    Methods

    CreateCameraObserver(Camera)

    Create a IStageObserver that computes a geometric error based on the frustum of a given camera relative to the Bounds.

    Declaration
    public static ICameraObserver CreateCameraObserver(Camera camera)
    Parameters
    Type Name Description
    Camera camera

    The camera used to calculate the frustum. Cannot be null.

    Returns
    Type Description
    ICameraObserver

    The created ICameraObserver that can be feed to Add(IStageObserver).

    CreateCameraObserver(Camera, float)

    Create a IStageObserver that computes a geometric error based on the frustum of a given camera relative to the Bounds.

    Declaration
    public static ICameraObserver CreateCameraObserver(Camera camera, float screenSpaceError)
    Parameters
    Type Name Description
    Camera camera

    The camera used to calculate the frustum. Cannot be null.

    float screenSpaceError

    The error tolerance in pixels.

    Returns
    Type Description
    ICameraObserver

    The created ICameraObserver that can be feed to Add(IStageObserver).

    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)