Navigation
API > API/Plugins > API/Plugins/MetaHumanCrowd
Subsystem responsible for all visual of MetaHuman Mass agents.
Extends the engine MassRepresentationSubsystem (which now has native ISKM support) with MetaHuman-specific functionality: MHI registry, appearance management, etc.
| Name | UMetaHumanMassRepresentationSubsystem |
| Type | class |
| Header File | /Engine/Plugins/MetaHuman/MetaHumanCrowd/Source/MetaHumanCrowd/Public/Mass/MetaHumanMassRepresentationSubsystem.h |
| Include Path | #include "Mass/MetaHumanMassRepresentationSubsystem.h" |
Syntax
UCLASS (MinimalAPI)
class UMetaHumanMassRepresentationSubsystem : public UMassRepresentationSubsystem
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → UWorldSubsystem → UMassSubsystemBase → UMassRepresentationSubsystem → UMetaHumanMassRepresentationSubsystem
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const TArray< TArray< float > > & GetCustomDataFloatsPerMesh
(
uint32 AppearanceId |
Per-mesh custom-data slices for the appearance, indexed in Desc.Meshes order. | Mass/MetaHumanMassRepresentationSubsystem.h | |
UMetaHumanCrowdAppearanceProvider * GetExistingProvider
(
TSubclassOf< UMetaHumanCrowdAppearanceProvider > ProviderClass |
Returns an existing provider for the given class without creating one. | Mass/MetaHumanMassRepresentationSubsystem.h | |
UMetaHumanInstance * GetInstanceForHandle
(
FMetaHumanCrowdAppearanceHandle Handle |
Returns the UMetaHumanInstance associated with Handle, or nullptr if Handle is invalid. | Mass/MetaHumanMassRepresentationSubsystem.h |
|
TConstArrayView< FName > GetMeshRolesForDesc
(
FSkinnedMeshInstanceVisualizationDescHandle Handle |
Role tag (Face / Body / Groom / Outfit) per Desc.Meshes entry; empty view for unknown handles. | Mass/MetaHumanMassRepresentationSubsystem.h | |
UMetaHumanInstance * GetMetaHumanInstanceByAppearanceId
(
uint32 AppearanceId |
Get the matching MHI for a given appearance ID. | Mass/MetaHumanMassRepresentationSubsystem.h | |
UMetaHumanCrowdAppearanceProvider * GetOrCreateProvider
(
TSubclassOf< UMetaHumanCrowdAppearanceProvider > ProviderClass, |
Returns the provider object for the given class, owned by this subsystem. | Mass/MetaHumanMassRepresentationSubsystem.h | |
FSkinnedMeshInstanceVisualizationDescHandle GetSkinnedMeshInstanceByAppearanceId
(
uint32 AppearanceId |
Get the matching ISKM visualization handle for a given appearance ID. | Mass/MetaHumanMassRepresentationSubsystem.h | |
TArray< uint32 > InitializeMetaHumanInstanceRegistry
(
const TArray< UMetaHumanInstance* >& InstanceData |
Mass/MetaHumanMassRepresentationSubsystem.h | ||
bool IsValidAppearanceHandle
(
FMetaHumanCrowdAppearanceHandle Handle |
True if Handle currently refers to a registered, non-released appearance entry. | Mass/MetaHumanMassRepresentationSubsystem.h |
|
void OnEntityAssignedAppearance
(
uint32 AppearanceId |
Internal: increment the entity refcount on the given appearance entry. | Mass/MetaHumanMassRepresentationSubsystem.h | |
void OnEntityReleasedAppearance
(
uint32 AppearanceId |
Internal: decrement the entity refcount on the given appearance entry. | Mass/MetaHumanMassRepresentationSubsystem.h | |
| Register a UMetaHumanInstance with the appearance registry. | Mass/MetaHumanMassRepresentationSubsystem.h |
|
|
FMetaHumanCrowdAppearanceHandle TryGetAppearanceHandleForInstance
(
UMetaHumanInstance* Instance |
Look up the appearance handle for an already-registered MetaHuman Instance. | Mass/MetaHumanMassRepresentationSubsystem.h |
|
void UnregisterInstance
(
FMetaHumanCrowdAppearanceHandle Handle |
Mark a handle obtained from RegisterInstance as no longer needed. | Mass/MetaHumanMassRepresentationSubsystem.h |
|
Public Virtual
Overridden from USubsystem
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Deinitialize() |
Mass/MetaHumanMassRepresentationSubsystem.h |