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.
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. |