UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TMassExternalSubsystemTraits< T > Struct Template Referencefinal

#include <MassExternalSubsystemTraits.h>

Public Types

enum  { GameThreadOnly = true , ThreadSafeWrite = !GameThreadOnly }
 

Detailed Description

template<typename T>
struct TMassExternalSubsystemTraits< T >

Traits describing how a given piece of code can be used by Mass. We require author or user of a given subsystem to define its traits. To do it add the following in an accessible location.

template<> struct TMassExternalSubsystemTraits<UMyCustomManager> { enum { GameThreadOnly = false; } }

this will let Mass know it can access UMyCustomManager on any thread.

This information is being used to calculate processor and query dependencies as well as appropriate distribution of calculations across threads.

Member Enumeration Documentation

◆ anonymous enum

template<typename T >
anonymous enum
Enumerator
GameThreadOnly 
ThreadSafeWrite 

The documentation for this struct was generated from the following file: