docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class HapticControl

    Input System control that wraps up a Haptic structure.

    Inheritance
    object
    HapticControl
    Namespace: UnityEngine.XR.OpenXR.Input
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    public class HapticControl : InputControl<Haptic>

    Constructors

    HapticControl()

    Default Constructor required by the Input System for instantiation.

    Declaration
    public HapticControl()

    Methods

    ReadUnprocessedValueFromState(void*)

    Returns an empty haptic structure since haptics are an output and have no data

    Declaration
    public override Haptic ReadUnprocessedValueFromState(void* statePtr)
    Parameters
    Type Name Description
    void* statePtr

    Raw state data to read from

    Returns
    Type Description
    Haptic

    Empty haptic structure

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)