docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRHandRecordingBase

    Provides a base class for XR Hand recording session implementations.

    Inheritance
    object
    XRHandRecordingBase
    XRHandRecordingBlob
    XRHandRecordingMetadata
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.Hands.Capture.Recording
    Assembly: Unity.XR.Hands.dll
    Syntax
    public abstract class XRHandRecordingBase

    Fields

    m_AssetName

    The name of the recording. Used as the recording asset name when imported into Unity Editor.

    Declaration
    protected string m_AssetName
    Field Value
    Type Description
    string

    m_DurationInSeconds

    The duration of the recording in seconds.

    Declaration
    protected float m_DurationInSeconds
    Field Value
    Type Description
    float

    m_UniqueID

    The unique identifier for the recording session. Generated by GenerateUniqueID(). This unique ID serves as the base filename for the binary recording file saved on device.

    Declaration
    protected string m_UniqueID
    Field Value
    Type Description
    string

    Properties

    assetName

    The name of the recording. Used as the recording asset name when imported into Unity Editor.

    Declaration
    public string assetName { get; }
    Property Value
    Type Description
    string

    durationInSeconds

    The duration of the recording in seconds.

    Declaration
    public float durationInSeconds { get; }
    Property Value
    Type Description
    float

    Methods

    Delete()

    Deletes the persisted file of this recording from device.

    Declaration
    public abstract void Delete()
    Remarks

    This method permanently deletes the recording file from player device to free up space, only call this method when you are sure you no longer need the recording.

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