docs.unity3d.com
    Show / Hide Table of Contents

    Class XRCustomLoaderUIAttribute

    Custom attribute that indicates a class supports the IXRCustomLoaderUI for a specific loader and build target group. Any class marked with this attribute will have IXRCustomLoaderUI methods called on it while the XR Plug-in Management UI is displaying the supported loader for the supported build target.

    Note that there can only be one custom loader for each (Loader Type, BuildTargetGroup) combination. If more than one loader exists, the system will fall back to built-in supported rendering and log a warning in the Console window.

    Inheritance
    Object
    XRCustomLoaderUIAttribute
    Namespace: UnityEditor.XR.Management
    Syntax
    public class XRCustomLoaderUIAttribute : Attribute

    Constructors

    XRCustomLoaderUIAttribute(String, BuildTargetGroup)

    Constructor for this attribute.

    Declaration
    public XRCustomLoaderUIAttribute(string loaderTypeName, BuildTargetGroup buildTargetGroup)
    Parameters
    Type Name Description
    String loaderTypeName

    Loader type name.

    BuildTargetGroup buildTargetGroup

    Build Target Group.

    Properties

    buildTargetGroup

    Supported build target group.

    Declaration
    public BuildTargetGroup buildTargetGroup { get; set; }
    Property Value
    Type Description
    BuildTargetGroup

    Supported build target group.

    loaderTypeName

    Supported loader type.

    Declaration
    public string loaderTypeName { get; set; }
    Property Value
    Type Description
    String

    Supported loader type.

    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