Class CustomCapabilityKeyAttribute
Use this attribute to define a custom capability key. You can tag the constant string fields definition of your custom capabilities with this attribute
to allow them to be shown in the Capability
Inherited Members
Namespace: Unity.XR.CoreUtils .Capabilities
Assembly: Unity.XR.CoreUtils.dll
Syntax
[AttributeUsage(AttributeTargets.Field)]
public sealed class CustomCapabilityKeyAttribute : Attribute
Examples
Below is an example of a custom device capability definition:
[CustomCapabilityKey(200)]
public const string CustomFeatureCustomCapability = "Custom Feature/Custom Capability";
Constructors
CustomCapabilityKeyAttribute(int)
Constructor for attribute.
Declaration
public CustomCapabilityKeyAttribute(int order = 1000)
Parameters
Type | Name | Description |
---|---|---|
int | order | The order to show the custom capability. |
Fields
Order
The order to show the custom capability.
Declaration
public readonly int Order
Field Value
Type | Description |
---|---|
int |