Navigation
API > API/Plugins > API/Plugins/MassRepresentation > API/Plugins/MassRepresentation/UMassRepresentationActorManageme-
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual AActor * GetOrSpawnActor
(
UMassRepresentationSubsystem& RepresentationSubsystem, |
Returns an actor of the template type and setup fragments values from it | MassRepresentationActorManagement.h | |
virtual AActor * GetOrSpawnActor
(
UMassRepresentationSubsystem& RepresentationSubsystem, |
MassRepresentationActorManagement.h |
GetOrSpawnActor(UMassRepresentationSubsystem &, FMassEntityManager &, const FMassEntityHandle, const FTransform &, const int16, FMassActorSpawnRequestHandle &, const float)
Description
Returns an actor of the template type and setup fragments values from it
| Name | GetOrSpawnActor |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassRepresentation/Public/MassRepresentationActorManagement.h |
| Include Path | #include "MassRepresentationActorManagement.h" |
| Source | /Engine/Plugins/Runtime/MassGameplay/Source/MassRepresentation/Private/MassRepresentationActorManagement.cpp |
virtual AActor * GetOrSpawnActor
(
UMassRepresentationSubsystem & RepresentationSubsystem,
FMassEntityManager & EntityManager,
const FMassEntityHandle MassAgent,
const FTransform & Transform,
const int16 TemplateActorIndex,
FMassActorSpawnRequestHandle & InOutSpawnRequestHandle,
const float Priority
) const
the actor spawned
Parameters
| Name | Remarks |
|---|---|
| RepresentationSubsystem | to use to get or spawn the actor |
| EntityManager | associated to the mass agent |
| MassAgent | is the handle to the associated mass agent |
| ActorInfo | is the fragment where we are going to store the actor pointer |
| Transform | is the spatial information about where to spawn the actor |
| TemplateActorIndex | is the index of the type fetched with UMassRepresentationSubsystem::FindOrAddTemplateActor() |
| SpawnRequestHandle | (in/out) In: previously requested spawn Out: newly requested spawn |
| Priority | of this spawn request in comparison with the others, lower value means higher priority |
GetOrSpawnActor(UMassRepresentationSubsystem &, FMassEntityManager &, const FMassEntityHandle, FMassActorFragment &, const FTransform &, const int16, FMassActorSpawnRequestHandle &, const float)
| Name | GetOrSpawnActor |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassRepresentation/Public/MassRepresentationActorManagement.h |
| Include Path | #include "MassRepresentationActorManagement.h" |
| Source | /Engine/Plugins/Runtime/MassGameplay/Source/MassRepresentation/Private/MassRepresentationActorManagement.cpp |
virtual AActor * GetOrSpawnActor
(
UMassRepresentationSubsystem & RepresentationSubsystem,
FMassEntityManager & EntityManager,
const FMassEntityHandle MassAgent,
FMassActorFragment &,
const FTransform & Transform,
const int16 TemplateActorIndex,
FMassActorSpawnRequestHandle & InOutSpawnRequestHandle,
const float Priority
) const