UGoogleARCoreFaceMeshComponent

This component is updated by the ARSystem with face data on devices that have support for it

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

GoogleARCoreBase

Header

/Engine/Plugins/Runtime/AR/Google/GoogleARCore/Source/GoogleARCoreBase/Public/GoogleARCoreFaceMeshComponent.h

Include

#include "GoogleARCoreFaceMeshComponent.h"

Syntax

UCLASS(HideCategories=(Object, LOD, "GoogleARCore|AugmentedFace"),
       Meta=(BlueprintSpawnableComponent), ClassGroup="AR")
class UGoogleARCoreFaceMeshComponent : public UProceduralMeshComponent

Remarks

This component is updated by the ARSystem with face data on devices that have support for it

Variables

Name Description

Public variable UProperty Category, EditAnywhere BlueprintReadOnly

bool

 

bAutoBindToLocalFaceMesh

If true, the mesh data will come from the local ARKit face mesh data.

Public variable UProperty Category, EditAnywhere BlueprintReadOnly

bool

 

bWantsCollision

Indicates whether collision should be created for this face mesh.

Public variable UProperty Category, EditAnywhere BlueprintReadOnly

UMaterialInterf...

 

FaceMaterial

Used when rendering the face mesh (mostly debug reasons)

Public variable UProperty Category, EditAnywhere BlueprintReadOnly

EARCoreFaceComp...

 

TransformSetting

Determines how the transform from tracking data and the component's transform are mixed together

Constructors

Name Description

Public function

UGoogleARCoreFaceMeshComponent

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function UFunction BlueprintCallable, Category, Meta

void

 

BindARFaceGeometry

(
    UARFaceGeometry* FaceGeometry
)

Bind this FaceMeshComponent to the given UARFaceGeometry object.

Public function UFunction BlueprintCallable, Category, Meta

void

 

CreateMesh

(
    const TArray< FVector >& Vertices,
    const TArray< int32 >& Triangles,
    const TArray< FVector2D >& UV0
)

Create the initial face mesh from raw mesh data

Public function Const UFunction BlueprintPure, Category

FTransform

 

GetTransform()

Get the transform that the AR camera has detected

Public function UFunction BlueprintCallable, Category, Meta

void

 

SetAutoBind

(
    bool bAutoBind
)

If auto bind is true, then this component will update itself from the local face tracking data each tick.

Public function UFunction BlueprintCallable, Category, Meta

void

 

UpdateMesh

(
    const TArray< FVector >& Vertices
)

Updates the face mesh vertices.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback