Navigation
API > API/Plugins > API/Plugins/AppleARKitFaceSupport
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- UPrimitiveComponent
- UMeshComponent
- UProceduralMeshComponent
- UAppleARKitFaceMeshComponent
References
| Module | AppleARKitFaceSupport |
| Header | /Engine/Plugins/Runtime/AR/AppleAR/AppleARKitFaceSupport/Source/AppleARKitFaceSupport/Public/AppleARKitFaceMeshComponent.h |
| Include | #include "AppleARKitFaceMeshComponent.h" |
Syntax
UCLASS&40;HideCategories&61;&40;Object, LOD, "Components&124;ProceduralMesh"&41;,
Meta&61;&40;BlueprintSpawnableComponent&41;, ClassGroup&61;"AR"&41;
class UAppleARKitFaceMeshComponent : public UProceduralMeshComponent
Remarks
This component is updated by the ARSystem with face data on devices that have support for it
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAutoBindToLocalFaceMesh | If true, the mesh data will come from the local ARKit face mesh data. | |
| bool | bFlipTrackedRotation | If true, the face mesh will be rotated to face out of the screen (-X) rather than into the screen (+X) and corresponding axises to match | |
| bool | bWantsCollision | Indicates whether collision should be created for this face mesh. | |
| bool | bWantsMeshUpdates | Indicates whether the face mesh data should be built for rendering or not | |
| TObjectPtr< class UMaterialInterface > | FaceMaterial | Used when rendering the face mesh (mostly debug reasons) | |
| FName | LiveLinkSubjectName | Used to identify this component's face ar data uniquely as part of the LiveLink animation pipeline | |
| TArray< FNetQuantizeFaceCurve > | RemoteCurves | The set of changed curves to replicate to the other clients | |
| EARFaceComponentTransformMixing | TransformSetting | Determines how the transform from tracking data and the component's transform are mixed together |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UAppleARKitFaceMeshComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CreateMesh
(
const TArray< FVector >& Vertices, |
Create the initial face mesh from raw mesh data | |
| float | GetFaceBlendShapeAmount
(
EARFaceBlendShape BlendShape |
Returns the value of the specified blend shape | |
| int32 | Returns the frame number that was last used to update this component | ||
| float | Returns the frame timestamp that was last used to update this component | ||
| FTransform | GetTransform () |
Get the transform that the AR camera has detected | |
| void |
PublishViaLiveLink
(
FName SubjectName |
Starts LiveLink publishing of this face component's data so that it can be used by the animation system | |
| void | SetAutoBind
(
bool bAutoBind |
If auto bind is true, then this component will update itself from the local face tracking data each tick. | |
| void | SetBlendShapeAmount
(
EARFaceBlendShape BlendShape, |
Sets the amount for a given blend shape | |
| void | SetBlendShapes
(
const TMap< EARFaceBlendShape, float >& InBlendShapes |
Set all of the blend shapes for this instance from a set of blend shapes | |
| void | UpdateMesh
(
const TArray< FVector >& Vertices |
Updates the face mesh vertices. | |
| void | Create/replace the face mesh from the current set of blend shapes if the device supports it |