Class XRControllerRecorder | XR Interaction Toolkit | 0.0.6-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class XRControllerRecorder

    MonoBehaviour that drives interaction recording and playback (via XRControllerRecording assets).

    Inheritance
    Object
    XRControllerRecorder
    Namespace: UnityEngine.XR.Interaction.Toolkit
    Syntax
    public class XRControllerRecorder : MonoBehaviour

    Properties

    controller

    Gets or sets whether the controller that this recording uses for recording and playback.

    Declaration
    public XRController controller { get; set; }
    Property Value
    Type Description
    XRController

    currentTime

    Gets current recording/playback time.

    Declaration
    public double currentTime { get; }
    Property Value
    Type Description
    Double

    duration

    Gets total playback time (or 0.0f if no recording).

    Declaration
    public double duration { get; }
    Property Value
    Type Description
    Double

    isPlaying

    Gets or sets whether the XRControllerRecorder is currently playing back interaction state.

    Declaration
    public bool isPlaying { get; set; }
    Property Value
    Type Description
    Boolean

    isRecording

    Gets or sets whether the XRControllerRecorder is currently recording interaction state.

    Declaration
    public bool isRecording { get; set; }
    Property Value
    Type Description
    Boolean

    playOnStart

    Gets or sets whether this recording will start playing when the component is started.

    Declaration
    public bool playOnStart { get; set; }
    Property Value
    Type Description
    Boolean

    Methods

    ResetPlayback()

    Resets the recorder to the start of the clip.

    Declaration
    public void ResetPlayback()
    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