docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Register

    Register(XRCameraSubsystemCinfo)

    Registers a camera subsystem implementation based on the given subsystem parameters.

    Declaration
    public static bool Register(XRCameraSubsystemCinfo cameraSubsystemParams)
    Parameters
    Type Name Description
    XRCameraSubsystemCinfo cameraSubsystemParams

    The parameters defining the camera subsystem functionality implemented by the subsystem provider.

    Returns
    Type Description
    bool

    true if the subsystem implementation is registered. Otherwise, false.

    Exceptions
    Type Condition
    ArgumentException

    Thrown when the values specified in the XRCameraSubsystemCinfo parameter are invalid. Typically, this will occur:

    • if id is null or empty
    • if implementationType is null
    • if implementationType does not derive from XRCameraSubsystem
    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023