Class XRGestureSubsystem | XR Interaction Subsystems | 1.0.1
docs.unity.cn
    Show / Hide Table of Contents

    Class XRGestureSubsystem

    This class controls the lifecycle of an XR Gesture subsystem.

    Inheritance
    Object
    XRGestureSubsystem
    XRGestureSubsystemTest
    Namespace: UnityEngine.XR.InteractionSubsystems
    Syntax
    public abstract class XRGestureSubsystem : Subsystem<XRGestureSubsystemDescriptor>

    Constructors

    XRGestureSubsystem()

    Do not call this directly. Call create on a valid XRGestureSubsystemDescriptor instead.

    Declaration
    public XRGestureSubsystem()

    Properties

    activateGestureEvents

    A collection of all managed by this subsystem. This is cleared every frame and refreshed with new gesture events.

    Declaration
    public NativeArray<ActivateGestureEvent> activateGestureEvents { get; }
    Property Value
    Type Description
    NativeArray<ActivateGestureEvent>

    running

    Whether the Gesture subsystem is currently running.

    Declaration
    public override sealed bool running { get; }
    Property Value
    Type Description
    Boolean

    Methods

    CreateProvider()

    Implement this to provide this class with an interface to platform specific implementations.

    Declaration
    protected abstract XRGestureSubsystem.Provider CreateProvider()
    Returns
    Type Description
    XRGestureSubsystem.Provider

    An implementation specific provider.

    Destroy()

    Destroys the Gesture subsystem.

    Declaration
    public override sealed void Destroy()

    Start()

    Starts or resumes the Gesture subsystem.

    Declaration
    public override sealed void Start()

    Stop()

    Pauses the Gesture subsystem.

    Declaration
    public override sealed void Stop()

    Update()

    Trigger the Gesture's update loop.

    Declaration
    public void Update()
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX