Struct SendSimpleRumbleCommand | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023