Method SetInputProperty
SetInputProperty(ref XRInputButtonReader, XRInputButtonReader)
Helper method for setting an input property.
Declaration
protected void SetInputProperty(ref XRInputButtonReader property, XRInputButtonReader value)
Parameters
| Type | Name | Description |
|---|---|---|
| XRInputButtonReader | property | The ref to the field. |
| XRInputButtonReader | value | The new value being set. |
Remarks
If the application is playing, this method will also enable or disable directly embedded input actions serialized by the input if that mode is used. It will also add or remove the input from the list of button inputs to automatically manage enabling and disabling direct actions with this behavior.
See Also
SetInputProperty<TValue>(ref XRInputValueReader<TValue>, XRInputValueReader<TValue>)
Helper method for setting an input property.
Declaration
protected void SetInputProperty<TValue>(ref XRInputValueReader<TValue> property, XRInputValueReader<TValue> value) where TValue : struct
Parameters
| Type | Name | Description |
|---|---|---|
| XRInputValueReader<TValue> | property | The ref to the field. |
| XRInputValueReader<TValue> | value | The new value being set. |
Type Parameters
| Name | Description |
|---|---|
| TValue | Type of the value read by the property, such as Vector2 or float. |
Remarks
If the application is playing, this method will also enable or disable directly embedded input actions serialized by the input if that mode is used. It will also add or remove the input from the list of value inputs to automatically manage enabling and disabling direct actions with this behavior.