Navigation
API > API/Plugins > API/Plugins/MassActors
Fragment to save the actor pointer of a mass entity if it exists
| Name | FMassActorFragment |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassActors/Public/MassActorSubsystem.h |
| Include Path | #include "MassActorSubsystem.h" |
Syntax
USTRUCT ()
struct FMassActorFragment : public FObjectWrapperFragment
Inheritance Hierarchy
- FMassFragment → FObjectWrapperFragment → FMassActorFragment
Enums
Public
| Name | Remarks |
|---|---|
| EActorAccess |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Actor | TWeakObjectPtr< AActor > | Made visible for debugging purposes. It will show up in Mass's gameplay debugger category when viewing fragment details | MassActorSubsystem.h |
|
| bIsOwnedByMass | bool | Ownership of the actor | MassActorSubsystem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| MassActorSubsystem.h | |||
const AActor * Get
(
EActorAccess Access |
MassActorSubsystem.h | ||
AActor * GetMutable () |
MassActorSubsystem.h | ||
AActor * GetMutable
(
EActorAccess Access |
MassActorSubsystem.h | ||
AActor * GetOwnedByMassMutable() |
MassActorSubsystem.h | ||
bool IsOwnedByMass() |
MassActorSubsystem.h | ||
bool IsValid() |
MassActorSubsystem.h | ||
void ResetAndUpdateHandleMap
(
UMassActorSubsystem* CachedActorSubsystem |
Resets the actor pointed by this fragment, will also keep the map back in UMassActorSubsystem up to date | MassActorSubsystem.h | |
void ResetNoHandleMapUpdate () |
Resets the actor pointed by this fragment, will NOT keep map back in MassActorSubsystem up to date. | MassActorSubsystem.h | |
void SetAndUpdateHandleMap
(
const FMassEntityHandle MassAgent, |
Set the actor associated to a mass agent, will also keep the map back in MassActorSubsystem up to date. | MassActorSubsystem.h | |
void SetNoHandleMapUpdate
(
const FMassEntityHandle MassAgent, |
Set the actor associated to a mass agent, will NOT keep map back in MassActorSubsystem up to date. | MassActorSubsystem.h |