![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MassEntityView.h>
Static Public Member Functions | |
| static UE_API FMassEntityView | TryMakeView (const FMassEntityManager &EntityManager, FMassEntityHandle Entity) |
Protected Member Functions | |
| UE_API void * | GetFragmentPtr (const UScriptStruct &FragmentType) const |
| UE_API void * | GetFragmentPtrChecked (const UScriptStruct &FragmentType) const |
| UE_API const void * | GetConstSharedFragmentPtr (const UScriptStruct &FragmentType) const |
| UE_API const void * | GetConstSharedFragmentPtrChecked (const UScriptStruct &FragmentType) const |
| UE_API void * | GetSharedFragmentPtr (const UScriptStruct &FragmentType) const |
| UE_API void * | GetSharedFragmentPtrChecked (const UScriptStruct &FragmentType) const |
The type representing a single entity in a single archetype. It's of a very transient nature so we guarantee it's validity only within the scope it has been created in. Don't store it.
|
default |
| FMassEntityView::FMassEntityView | ( | const FMassArchetypeHandle & | ArchetypeHandle, |
| FMassEntityHandle | Entity | ||
| ) |
Resolves Entity against ArchetypeHandle. Note that this approach requires the caller to ensure that Entity indeed belongs to ArchetypeHandle. If not the call will fail a check. As a remedy calling the FMassEntityManager-flavored constructor is recommended since it will first find the appropriate archetype for Entity.
| FMassEntityView::FMassEntityView | ( | const FMassEntityManager & | EntityManager, |
| FMassEntityHandle | Entity | ||
| ) |
Finds the archetype Entity belongs to and then resolves against it. The caller is responsible for ensuring that the given Entity is in fact a valid ID tied to any of the archetypes
|
inline |
will fail a check if the viewed entity doesn't have the given const shared fragment
|
inline |
if the viewed entity doesn't have the given const shared fragment the function will return null
|
inline |
|
protected |
|
protected |
|
inline |
|
inline |
will fail a check if the viewed entity doesn't have the given fragment
|
inline |
if the viewed entity doesn't have the given fragment the function will return null
|
inline |
|
protected |
|
protected |
|
inline |
will fail a check if the viewed entity doesn't have the given shared fragment
|
inline |
|
inline |
if the viewed entity doesn't have the given shared fragment the function will return null
|
inline |
|
inline |
|
protected |
|
protected |
| bool FMassEntityView::HasTag | ( | const UScriptStruct & | TagType | ) | const |
|
inline |
|
inline |
|
inline |
|
static |
If the given handle represents a valid entity the function will create a FMassEntityView just like a constructor would. If the entity is not valid the produced view will be "unset".