docs.unity3d.com
    Show / Hide Table of Contents

    Class HapticControl

    Input System control that wraps up a Haptic structure.

    Inheritance
    Object
    HapticControl
    Namespace: UnityEngine.XR.OpenXR.Input
    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

    Back to top
    Terms of use
    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