Struct SendSimpleRumbleCommand
A device command sent to a device to set it's motor rumble intensity.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: UnityEngine.Experimental.Input.Plugins.XR.Haptics
Syntax
public struct SendSimpleRumbleCommand : IInputDeviceCommandInfo
Remarks
This is directly used by the SimpleXRRumble class. For clearer details of using this command, see that class.
Methods
Create(Single)
Creates a device command that can then be sent to a specific device.
Declaration
public static SendSimpleRumbleCommand Create(float motorIntensity)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | motorIntensity | The desired motor intensity that should be within a [0-1] range. |
Returns
| Type | Description |
|---|---|
| SendSimpleRumbleCommand | The command that should be sent to the device via InputDevice.ExecuteCommand(InputDeviceCommand). See SimpleXRRumble for more details. |
GetTypeStatic()
Declaration
public FourCC GetTypeStatic()
Returns
| Type | Description |
|---|---|
| FourCC |