API reference

UOculusXRFaceTrackingComponent Class

Extends UActorComponent

Fields

FName TargetMeshComponentName[Get]
The name of the skinned mesh component that this component targets for facial expression. This must be the name of a component on this actor.
float InvalidFaceDataResetTime[Get]
If the face data is invalid for at least this or longer than this time then all face blendshapes/morph targets are reset to zero.
TMap< EOculusXRFaceExpression, FName > ExpressionNames[Get]
The list of expressions that this component supports. Names are validated on startup so only valid morph targets on the skeletal mesh will be targeted.
TArray< FOculusXRFaceExpressionModifier > ExpressionModifiers[Get]
An array of optional expression modifiers that can be applied.
bool bUpdateFace[Get]
This flag determines if the face should be updated or not during the components tick.
bool bUseModifiers[Get]
This flag determines if the face should be modified with Expression Modifiers or not during the components tick.

Member Functions

UOculusXRFaceTrackingComponent ( )
virtual void BeginPlay ( )
virtual void EndPlay
( const EEndPlayReason::Type EndPlayReason )
virtual void TickComponent
( float DeltaTime,
enum ELevelTick TickType,
FActorComponentTickFunction * ThisTickFunction )
void SetExpressionValue
( EOculusXRFaceExpression Expression,
float Value )
Set face expression value with expression key and value(0-1).
Parameters
Expression
: The expression key that will be modified.
Value
: The new value to assign to the expression, 0 will remove all changes.
float GetExpressionValue
( EOculusXRFaceExpression Expression )
Get a face expression value given an expression key.
Parameters
Expression
: The expression key that will be queried.
void ClearExpressionValues ( )
Clears all face expression values.