UMassRepresentationSubsystem::FindOrAddStaticMeshDesc

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

Choose your operating system:

Windows

macOS

Linux

References

Module

MassRepresentation

Header

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

Include

#include "MassRepresentationSubsystem.h"

Source

/Engine/Plugins/Runtime/MassGameplay/Source/MassRepresentation/Private/MassRepresentationSubsystem.cpp

Syntax

int16 FindOrAddStaticMeshDesc
(
    const FStaticMeshInstanceVisualizationDesc & Desc
) const

Remarks

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

Returns

The index of the static mesh type

Parameters

Parameter

Description

Desc

is the information for the static mesh that will be instantiated later via AddStaticMeshInstance()