Navigation
API > API/Plugins > API/Plugins/MassRepresentation
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- UMassVisualizationComponent
References
| Module | MassRepresentation |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassRepresentation/Public/MassVisualizationComponent.h |
| Include | #include "MassVisualizationComponent.h" |
Syntax
UCLASS&40;&41;
class UMassVisualizationComponent : public UActorComponent
Remarks
This component handles all the static mesh instances for a MassRepresentationProcessor and is an actor component off a MassVisualizer actor. Meant to be created at runtime and owned by an MassVisualizer actor. Will ensure if placed on a different type of actor.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bNeedStaticMeshComponentConstruction | Whether there is a need to create a StaticMeshComponent | |
| TArray< FMassInstancedStaticMeshInfo > | InstancedStaticMeshInfos | The information of all the instanced static meshes | |
| FRWRecursiveAccessDetector | InstancedStaticMeshInfosDetector | ||
| FMassISMCSharedDataMap | ISMCSharedData |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Signal the beginning of the static mesh instance changes, used to prepare the batching update of the static mesh instance transforms | ||
| void | |||
| void | Destroy all visual instances | ||
| void | Recreate all the static mesh components from the InstancedStaticMeshInfos | ||
| void |
DirtyVisuals ()
|
Dirty render state on all static mesh components | |
| void | Signal the end of the static mesh instance changes, used to batch apply the transforms on the static mesh instances | ||
| int16 | FindOrAddVisualDesc
(
const FStaticMeshInstanceVisualizationDesc& Desc |
Get the index of the visual type, will add a new one if does not exist | |
| FMassInstancedStaticMeshInfoArrayView | Get the array of all visual instance informations |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Overridden to make sure this component is only added to a MassVisualizer actor |