docs.unity.cn
    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 Copyright © 2021 Unity Technologies
    Generated by DocFX
    on Thursday, December 2, 2021
    Terms of use