Class MocapGroup
A type of LiveCaptureDevice that manages a set of MocapDevice<T>.
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.Mocap
Syntax
[AddComponentMenu("")]
[DisallowMultipleComponent]
[CreateDeviceMenuItem("Mocap Group", 0)]
[HelpURL("https://docs.unity.cn/Packages/com.unity.live-capture@4.0/manual/ref-component-mocap-group.html")]
public class MocapGroup : LiveCaptureDevice
Properties
Animator
The Animator component this device operates.
Declaration
public Animator Animator { get; set; }
Property Value
| Type | Description |
|---|---|
| Animator |
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
LiveUpdate()
Override this method to update the device during live mode.
Declaration
protected override void LiveUpdate()
Overrides
Remarks
This method is called after the animation system execution and before the script's LateUpdate.
OnStartRecording()
The device calls this method when a new recording started.
Declaration
protected override void OnStartRecording()
Overrides
OnStopRecording()
The device calls this method when the ongoing recording stopped.
Declaration
protected override void OnStopRecording()
Overrides
UpdateDevice()
Updates the internal state of the device.
Declaration
protected override void UpdateDevice()
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. |