Unity - Scripting API: InputFeatureUsage
struct in UnityEngine.XR
/
Implemented in:UnityEngine.XRModule
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Description
Defines a generic usage that maps to an input feature on a device. Use the As method to turn into a generic usage.
Properties
| Property | Description |
|---|---|
| name | The string name of this usage feature; used internally to map to an input feature on a device. |
| type | The type of this usage feature; used internally to map to an input feature on a device. |
Public Methods
| Method | Description |
|---|---|
| As | Returns the generic version of this type for retrieving a feature value from a device. |