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
Implements
Inherited Members
Namespace: Unity.XR.CoreUtils .Capabilities
Assembly: solution.dll
Syntax
[AttributeUsage(AttributeTargets.Field)]
public sealed class CustomCapabilityKeyAttribute : Attribute, _Attribute
Examples
Below is an example of a custom device capability definition:
[CustomCapabilityKey(200)]
public const string CustomFeatureCustomCapability = "Custom Feature/Custom Capability";
Constructors
Name | Description |
---|---|
Custom |
Constructor for attribute. |
Fields
Name | Description |
---|---|
Order | The order to show the custom capability. |