UMassVisualizationComponent

This component handles all the static mesh instances for a MassRepresentationProcessor and is an actor component off a MassVisualizer actor.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MassRepresentation

Header

/Engine/Plugins/Runtime/MassGameplay/Source/MassRepresentation/Public/MassVisualizationComponent.h

Include

#include "MassVisualizationComponent.h"

Syntax

UCLASS()
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

Name Description

Protected variable

bool

 

bNeedStaticMeshComponentConstruction

Whether there is a need to create a StaticMeshComponent

Protected variable UProperty Transient

TArray< FMassIn...

 

InstancedStaticMeshInfos

The information of all the instanced static meshes

Protected variable

FRWRecursiveAcc...

 

InstancedStaticMeshInfosDetector

Protected variable

FISMCSharedData...

 

ISMCSharedData

Functions

Name Description

Public function

void

 

BeginVisualChanges()

Signal the beginning of the static mesh instance changes, used to prepare the batching update of the static mesh instance transforms

Public function

void

 

ClearAllVisualInstances()

Destroy all visual instances

Protected function

void

 

ConstructStaticMeshComponents()

Recreate all the static mesh components from the InstancedStaticMeshInfos

Public function

void

 

DirtyVisuals()

Dirty render state on all static mesh components

Public function

void

 

EndVisualChanges()

Signal the end of the static mesh instance changes, used to batch apply the transforms on the static mesh instances

Public function

int16

 

FindOrAddVisualDesc

(
    const FStaticMeshInstanceVisualizat...
)

Get the index of the visual type, will add a new one if does not exist

Public function

FMassInstanc...

 

GetMutableVisualInfos()

Get the array of all visual instance informations

Overridden from UObject

Name Description

Protected function Virtual

void

 

PostInitProperties()

Overridden to make sure this component is only added to a MassVisualizer actor