docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRControllerRecording

    The XRControllerRecording ScriptableObject stores position, rotation, and Interaction state changes from the XR Interactor for playback.

    Inheritance
    object
    Object
    ScriptableObject
    XRControllerRecording
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.Interaction.Toolkit
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    [CreateAssetMenu(menuName = "XR/XR Controller Recording")]
    [Serializable]
    [PreferBinarySerialization]
    [HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@3.2/api/UnityEngine.XR.Interaction.Toolkit.XRControllerRecording.html")]
    public class XRControllerRecording : ScriptableObject, ISerializationCallbackReceiver

    Properties

    duration

    (Read Only) Total playback time for this recording.

    Declaration
    public double duration { get; }
    Property Value
    Type Description
    double
    See Also
    XRControllerRecorder

    frames

    (Read Only) Frames stored in this recording.

    Declaration
    public List<XRControllerState> frames { get; }
    Property Value
    Type Description
    List<XRControllerState>
    See Also
    XRControllerRecorder

    Methods

    AddRecordingFrame(XRControllerState)

    Adds a recording of a frame. Duplicates the supplied state object and adds the copy as a frame recording.

    Declaration
    public void AddRecordingFrame(XRControllerState state)
    Parameters
    Type Name Description
    XRControllerState state

    The XRControllerState to be recorded.

    See Also
    AddRecordingFrameNonAlloc(XRControllerState)

    AddRecordingFrameNonAlloc(XRControllerState)

    Adds a recording of a frame. Adds the supplied state object as a frame recording; does not allocate new memory.

    Declaration
    public void AddRecordingFrameNonAlloc(XRControllerState state)
    Parameters
    Type Name Description
    XRControllerState state

    The XRControllerState to be recorded.

    See Also
    AddRecordingFrame(XRControllerState)

    InitRecording()

    Initializes this recording by clearing all frames stored.

    Declaration
    public void InitRecording()
    See Also
    XRControllerRecorder

    SaveRecording()

    Saves this recording and writes to disk.

    Declaration
    public void SaveRecording()
    See Also
    XRControllerRecorder

    Implements

    ISerializationCallbackReceiver

    See Also

    XRControllerRecorder
    In This Article
    Back to top
    Copyright © 2025 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)