Class XRConfigurationDataAttribute
This attribute is used to tag classes as providing build settings support for an XR SDK provider. The unified setting system will present the settings as an inspectable object in the Unified Settings window using the built-in inspector UI.
The implementor of the settings is able to create their own custom UI and the Unified Settings system will use that UI in place of the build in inspector. See the Extending the Editor portion of the Unity documentation for information and instructions on doing this.
Inheritance
Namespace: UnityEngine.XR.Management
Syntax
[AttributeUsage(AttributeTargets.Class)]
public sealed class XRConfigurationDataAttribute : Attribute, _Attribute
Constructors
XRConfigurationDataAttribute(String, String)
Declaration
public XRConfigurationDataAttribute(string displayName, string buildSettingsKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | displayName | |
System.String | buildSettingsKey |
Properties
buildSettingsKey
The key that will be used to store the singleton instance of these settings within EditorBuildSettings.
See EditorBuildSettings scripting API documentation on how this is beign done.
Declaration
public string buildSettingsKey { get; set; }
Property Value
Type | Description |
---|---|
System.String |
displayName
The display name to be presented to the user in the Unified Settings window.
Declaration
public string displayName { get; set; }
Property Value
Type | Description |
---|---|
System.String |