Class TransformCaptureDevice
A capture device to record transform hierarchies.
Inheritance
TransformCaptureDevice
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
Namespace: Unity.LiveCapture.TransformCapture
Syntax
[AddComponentMenu("")]
[DisallowMultipleComponent]
[CreateDeviceMenuItem("Transform Capture Device", 0)]
[HelpURL("https://docs.unity.cn/Packages/com.unity.live-capture@4.0/manual/ref-component-transform-capture-device.html")]
public class TransformCaptureDevice : LiveCaptureDevice
Properties
Actor
The Animator currently assigned to this device.
Declaration
public Animator Actor { get; set; }
Property Value
| Type | Description |
|---|---|
| Animator |
AvatarMask
The AvatarMask currently assigned to this device.
Declaration
public AvatarMask AvatarMask { get; set; }
Property Value
| Type | Description |
|---|---|
| AvatarMask |
Methods
IsReady()
Indicates whether a device is ready for recording.
Declaration
public override bool IsReady()
Returns
| Type | Description |
|---|---|
| Boolean | true if ready for recording; otherwise, false. |
Overrides
OnDisable()
The device calls this method when the device is about to get disabled.
Declaration
protected override void OnDisable()
Overrides
Remarks
If you override this method, call the base method in your implementation.
OnEnable()
The device calls this method when the device is about to get enabled.
Declaration
protected override void OnEnable()
Overrides
Remarks
If you override this method, call the base method in your implementation.
OnStartRecording()
The device calls this method when a new recording started.
Declaration
protected override void OnStartRecording()
Overrides
Write(ITakeBuilder)
Stores the recording into a take using a ITakeBuilder.
Declaration
public override void Write(ITakeBuilder takeBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| ITakeBuilder | takeBuilder | The take builder object. |