Navigation
API > API/Plugins > API/Plugins/MassEntity
References
| Module | MassEntity |
| Header | /Engine/Plugins/Runtime/MassEntity/Source/MassEntity/Public/MassEntityView.h |
| Include | #include "MassEntityView.h" |
Syntax
USTRUCT&40;&41;
struct FMassEntityView
Remarks
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.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMassEntityView
(
const FMassArchetypeHandle& ArchetypeHandle, |
Resolves Entity against ArchetypeHandle. | ||
FMassEntityView
(
const FMassEntityManager& EntityManager, |
Finds the archetype Entity belongs to and then resolves against it. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const T & | Will fail a check if the viewed entity doesn't have the given const shared fragment | ||
| const T * | If the viewed entity doesn't have the given const shared fragment the function will return null | ||
| FConstStructView | GetConstSharedFragmentDataStruct
(
const UScriptStruct* FragmentType |
||
| const void * | GetConstSharedFragmentPtr
(
const UScriptStruct& FragmentType |
||
| const void * | GetConstSharedFragmentPtrChecked
(
const UScriptStruct& FragmentType |
||
| FMassEntityHandle | GetEntity () |
||
| T & | Will fail a check if the viewed entity doesn't have the given fragment | ||
| T * | If the viewed entity doesn't have the given fragment the function will return null | ||
| FStructView | GetFragmentDataStruct
(
const UScriptStruct* FragmentType |
||
| void * | GetFragmentPtr
(
const UScriptStruct& FragmentType |
||
| void * | GetFragmentPtrChecked
(
const UScriptStruct& FragmentType |
||
| T & | Will fail a check if the viewed entity doesn't have the given shared fragment | ||
| T * | If the viewed entity doesn't have the given shared fragment the function will return null | ||
| void * | GetSharedFragmentPtr
(
const UScriptStruct& FragmentType |
||
| void * | GetSharedFragmentPtrChecked
(
const UScriptStruct& FragmentType |
||
| bool | HasTag () |
||
| bool | HasTag
(
const UScriptStruct& TagType |
||
| bool | IsSet () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator==
(
const FMassEntityView& Other |