UMassEntityTraitBase

Base class for Mass Entity Traits.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MassSpawner

Header

/Engine/Plugins/Runtime/MassGameplay/Source/MassSpawner/Public/MassEntityTraitBase.h

Include

#include "MassEntityTraitBase.h"

Syntax

UCLASS(Abstract, BlueprintType, EditInlineNew, CollapseCategories)
class UMassEntityTraitBase : public UObject

Remarks

Base class for Mass Entity Traits. An entity trait is a set of fragments that create a logical trait tha makes sense to end use (i.e. replication, visualization). The template building method allows to configure some fragments based on properties or cached values. For example, a fragment can be added based on a referenced asset, or some memory hungry settings can be cached and just and index stored on a fragment.

Functions

Name Description

Public function Virtual Const

void

 

BuildTemplate

(
    FMassEntityTemplateBuildContext& B...,
    UWorld& World
)

Appends items into the entity template required for the trait.

Public function Virtual Const

void

 

DestroyTemplate()

Public function Virtual Const

void

 

ValidateTemplate

(
    FMassEntityTemplateBuildContext& B...,
    UWorld& World
)

Called when all Traits have had BuildTemplate() called.