Class MixedRealityControllerAttribute
Attach to a controller device class to make it show up in the controller mapping profile.
Inheritance
MixedRealityControllerAttribute
Assembly: cs.temp.dll.dll
public class MixedRealityControllerAttribute : Attribute
Constructors
Declaration
public MixedRealityControllerAttribute(SupportedControllerType supportedControllerType, Handedness[] supportedHandedness, string texturePath = "", MixedRealityControllerConfigurationFlags flags = (MixedRealityControllerConfigurationFlags)0)
Parameters
Properties
Additional flags for configuring controller capabilities.
Declaration
public MixedRealityControllerConfigurationFlags Flags { get; }
Property Value
The SupportedControllerType to which the controller device belongs to.
Declaration
public SupportedControllerType SupportedControllerType { get; }
Property Value
List of handedness values supported by the respective controller.
Declaration
public Handedness[] SupportedHandedness { get; }
Property Value
Type |
Description |
Handedness[] |
|
TexturePath
Path to image file used when displaying an icon in the UI.
Declaration
public string TexturePath { get; }
Property Value
Methods
Convenience function for retrieving the attribute given a certain class type.
Declaration
public static MixedRealityControllerAttribute Find(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns