Class XRControllerRecording
The XRControllerRecording ScriptableObject stores position, rotation, and Interaction state changes from the XR Interactor for playback.
Implements
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.Interaction.Toolkit
Assembly: solution.dll
Syntax
[CreateAssetMenu(menuName = "XR/XR Controller Recording")]
[Serializable]
[PreferBinarySerialization]
[HelpURL("https://docs.unity.cn/Packages/com.unity.xr.interaction.toolkit@3.0/api/UnityEngine.XR.Interaction.Toolkit.XRControllerRecording.html")]
public class XRControllerRecording : ScriptableObject, ISerializationCallbackReceiver
Properties
| Name | Description |
|---|---|
| duration | (Read Only) Total playback time for this recording. |
| frames | (Read Only) Frames stored in this recording. |
Methods
| Name | Description |
|---|---|
| AddRecordingFrame(XRControllerState) | Adds a recording of a frame.
Duplicates the supplied |
| AddRecordingFrameNonAlloc(XRControllerState) | Adds a recording of a frame.
Adds the supplied |
| InitRecording() | Initializes this recording by clearing all frames stored. |
| SaveRecording() | Saves this recording and writes to disk. |