Class FaceDevice
A device used to control face animation capture and playback.
Inheritance
Inherited Members
Namespace: Unity.LiveCapture .ARKitFaceCapture
Assembly: Unity.LiveCapture.ARKitFaceCapture.dll
Syntax
[ExcludeFromPreset]
[CreateDeviceMenuItem("ARKit Face Device", 0)]
[AddComponentMenu("Live Capture/ARKit Face Capture/ARKit Face Device")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.live-capture@4.0/manual/ref-component-arkit-face-device.html")]
public class FaceDevice : CompanionAppDevice<IFaceClient>
Remarks
The face capture data is in the format of Apple's ARKit face tracking.
Properties
Actor
Gets the Face
Declaration
public FaceActor Actor { get; set; }
Property Value
Type | Description |
---|---|
Face |
The assigned actor, or null if none is assigned. |
See Also
SyncBuffer
The synchronized data buffer.
Declaration
public ITimedDataSource SyncBuffer { get; }
Property Value
Type | Description |
---|---|
ITimed |
See Also
Methods
GetAssetName()
Gets the name used for the take asset name.
Declaration
protected override string GetAssetName()
Returns
Type | Description |
---|---|
string | The name of the asset. |
Overrides
See Also
IsReady()
Indicates whether a device is ready for recording.
Declaration
public override bool IsReady()
Returns
Type | Description |
---|---|
bool | true if ready for recording; otherwise, false. |
Overrides
See Also
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.
See Also
OnClientAssigned()
The device calls this method when a new client is assigned.
Declaration
protected override void OnClientAssigned()
Overrides
See Also
OnClientUnassigned()
The device calls this method when the client is unassigned.
Declaration
protected override void OnClientUnassigned()
Overrides
See Also
OnDisable()
This function is called when the behaviour becomes disabled.
Declaration
protected override void OnDisable()
Overrides
See Also
OnEnable()
This function is called when the object becomes enabled and active.
Declaration
protected override void OnEnable()
Overrides
See Also
OnRegisterLiveProperties(IPropertyPreviewer)
The device calls this method when a live performance starts and properties are about to change.
Declaration
protected override void OnRegisterLiveProperties(IPropertyPreviewer previewer)
Parameters
Type | Name | Description |
---|---|---|
IProperty |
previewer | The IProperty |
Overrides
See Also
OnStartRecording()
The device calls this method when the recording state has changed.
Declaration
protected override void OnStartRecording()
Overrides
See Also
UpdateDevice()
Updates the internal state of the device.
Declaration
protected override void UpdateDevice()
Overrides
See Also
Write(ITakeBuilder)
Stores the recording into a take using a ITake
Declaration
public override void Write(ITakeBuilder takeBuilder)
Parameters
Type | Name | Description |
---|---|---|
ITake |
takeBuilder | The take builder object. |