Navigation
API > API/Plugins > API/Plugins/MetaHumanIdentity
Component to manages different aspects of the MetaHuman Identity Template Mesh. This component makes use of Dynamic Meshes to store and display data. It can be used to store one mesh for each supported pose type, currently these are Neutral and Teeth. ShowHeadMeshForPose can be used to change which is currently active Head Mesh being displayed
| Name | UMetaHumanTemplateMeshComponent |
| Type | class |
| Header File | /Engine/Plugins/MetaHuman/MetaHumanAnimator/Source/MetaHumanIdentity/Public/MetaHumanTemplateMeshComponent.h |
| Include Path | #include "MetaHumanTemplateMeshComponent.h" |
Syntax
UCLASS (MinimalAPI)
class UMetaHumanTemplateMeshComponent : public UPrimitiveComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → USceneComponent → UPrimitiveComponent → UMetaHumanTemplateMeshComponent
Implements Interfaces
- IAsyncPhysicsStateProcessor
- IInterface_AssetUserData
- IInterface_AsyncCompilation
- INavRelevantInterface
- IPhysicsComponent
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMetaHumanTemplateMeshComponent() |
MetaHumanTemplateMeshComponent.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| UEToRigSpaceTransform | FTransform | Transform that can be used with the Bake functions to align the meshes with conformed data | MetaHumanTemplateMeshComponent.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bShowEyes | uint8 | Whether or not to show the eye meshes | MetaHumanTemplateMeshComponent.h |
|
| bShowFittedTeeth | uint8 | Whether or not the fitted teeth mesh is active | MetaHumanTemplateMeshComponent.h |
|
| bShowTeethMesh | uint8 | Whether or not to show the teeth mesh | MetaHumanTemplateMeshComponent.h |
|
| FittedTeethMesh | TObjectPtr< class UDynamicMesh > | Stores the fitted teeth mesh. | MetaHumanTemplateMeshComponent.h | |
| HeadMeshComponent | TObjectPtr< class UDynamicMeshComponent > | The component that displays the currently active head mesh | MetaHumanTemplateMeshComponent.h | |
| LeftEyeComponent | TObjectPtr< class UDynamicMeshComponent > | The component that displays the left eye mesh | MetaHumanTemplateMeshComponent.h | |
| OnTemplateMeshChanged | FSimpleMulticastDelegate | Delegate called any time one of the mesh components is modified. | MetaHumanTemplateMeshComponent.h | |
| OriginalTeethMesh | TObjectPtr< class UDynamicMesh > | Keeps the teeth mesh before fitting. | MetaHumanTemplateMeshComponent.h | |
| PoseHeadMeshes | TMap< EIdentityPoseType, TObjectPtr< class UDynamicMesh > > | Stores the dynamic meshes for each support pose. | MetaHumanTemplateMeshComponent.h | |
| RightEyeComponent | TObjectPtr< class UDynamicMeshComponent > | The component that displays the right eye mesh | MetaHumanTemplateMeshComponent.h | |
| TeethMeshComponent | TObjectPtr< class UDynamicMeshComponent > | The component that displays the currently active teeth mesh | MetaHumanTemplateMeshComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BakeEyeMeshesTransform
(
const FTransform& InTransform |
Bake a transform into the vertices of the eye meshes | MetaHumanTemplateMeshComponent.h | |
void BakeTeethMeshTransform
(
const FTransform& InTransform |
Bake a transform into the vertices of the teeth meshes | MetaHumanTemplateMeshComponent.h | |
void GetEyeMeshesVertices
(
const FTransform& InTransform, |
Returns the vertices for both left and right eyes. | MetaHumanTemplateMeshComponent.h | |
UDynamicMesh * GetPoseHeadMesh
(
EIdentityPoseType InPoseType |
Returns the dynamic mesh object for the given pose type | MetaHumanTemplateMeshComponent.h | |
void GetPoseHeadMeshVertices
(
EIdentityPoseType InPoseType, |
Returns the vertices for the head mesh of the given pose type. | MetaHumanTemplateMeshComponent.h | |
void GetTeethMeshVertices
(
const FTransform& InTransform, |
Returns the vertices for teeth mesh. | MetaHumanTemplateMeshComponent.h | |
void LoadMaterialsForMeshes() |
Set the override materials for template component meshes. Only needs to happen once | MetaHumanTemplateMeshComponent.h | |
void LoadMeshAssets() |
Load the mesh assets used by the template | MetaHumanTemplateMeshComponent.h | |
void ResetMeshes() |
Resets the template mesh | MetaHumanTemplateMeshComponent.h | |
void SetEyeMeshesVertices
(
TConstArrayView< FVector3f > InLeftEyeVertices, |
Set the vertices for both left and right eyes. | MetaHumanTemplateMeshComponent.h | |
void SetEyeMeshesVisibility
(
bool bInVisible |
Updates the eye meshes visibility | MetaHumanTemplateMeshComponent.h | |
void SetPoseHeadMeshVertices
(
EIdentityPoseType InPoseType, |
Set the pose head mesh from the given array of vertices. | MetaHumanTemplateMeshComponent.h | |
void SetTeethMeshVertices
(
TConstArrayView< FVector3f > InNewVertices, |
Set the vertices of the teeth mesh | MetaHumanTemplateMeshComponent.h | |
void SetTeethMeshVisibility
(
bool bInVisible |
Updates the teeth mesh visibility | MetaHumanTemplateMeshComponent.h | |
void ShowHeadMeshForPose
(
EIdentityPoseType InPoseType |
Set the currently active head pose mesh | MetaHumanTemplateMeshComponent.h |
Overridden from USceneComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FBoxSphereBounds CalcBounds
(
const FTransform& InLocalToWorld |
MetaHumanTemplateMeshComponent.h | ||
virtual void OnVisibilityChanged() |
MetaHumanTemplateMeshComponent.h |
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnRegister() |
MetaHumanTemplateMeshComponent.h | ||
virtual void OnUnregister() |
MetaHumanTemplateMeshComponent.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& InPropertyChangedEvent |
MetaHumanTemplateMeshComponent.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FVector ConvertVertex
(
const FVector& InVertex, |
Convert a vector from one coordinate system to another | MetaHumanTemplateMeshComponent.h |