UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMassObserverManager::FCollectionRefOrHandle Struct Reference

#include <MassObserverManager.h>

Public Member Functions

 UE_NONCOPYABLE (FCollectionRefOrHandle)
 
 FCollectionRefOrHandle (FMassEntityHandle InEntityHandle)
 
 FCollectionRefOrHandle (const FMassArchetypeEntityCollection &InEntityCollection)
 

Public Attributes

FMassEntityHandle EntityHandle
 
const FMassArchetypeEntityCollectionEntityCollection
 

Static Public Attributes

static FMassArchetypeEntityCollection DummyCollection
 

Detailed Description

helper struct for holding either a single enity handle or an archetype collection reference. The type is highly transient, do not store instances of it. Its only function is to allow us to have a single OnCompositionChange implementation rather than having two separate implementations, one for entity handle, the other for archetype collection.

Constructor & Destructor Documentation

◆ FCollectionRefOrHandle() [1/2]

FMassObserverManager::FCollectionRefOrHandle::FCollectionRefOrHandle ( FMassEntityHandle  InEntityHandle)
inlineexplicit

◆ FCollectionRefOrHandle() [2/2]

FMassObserverManager::FCollectionRefOrHandle::FCollectionRefOrHandle ( const FMassArchetypeEntityCollection InEntityCollection)
inlineexplicit

Member Function Documentation

◆ UE_NONCOPYABLE()

FMassObserverManager::FCollectionRefOrHandle::UE_NONCOPYABLE ( FCollectionRefOrHandle  )

Member Data Documentation

◆ DummyCollection

FMassArchetypeEntityCollection FMassObserverManager::FCollectionRefOrHandle::DummyCollection
static

◆ EntityCollection

const FMassArchetypeEntityCollection& FMassObserverManager::FCollectionRefOrHandle::EntityCollection

◆ EntityHandle

FMassEntityHandle FMassObserverManager::FCollectionRefOrHandle::EntityHandle

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