KarmaEngine
Game Engine for practical learning and research purposes
|
Struct of optional parameters passed to SpawnActor function(s). More...
#include <World.h>
Public Types | |
enum class | ESpawnActorNameMode : uint8_t { Required_Fatal , Required_ErrorAndReturnNull , Required_ReturnNull , Requested } |
Modes that SpawnActor can use the supplied name when it is not None. More... | |
Public Member Functions | |
bool | IsRemoteOwned () const |
Getter for m_bRemoteOwned. | |
Public Attributes | |
std::string | m_Name |
AActor * | m_Template |
AActor * | m_Owner |
APawn * | m_Instigator |
ULevel * | m_OverrideLevel |
class UChildActorComponent * | m_OverrideParentComponent |
ESpawnActorNameMode | m_NameMode |
EObjectFlags | m_ObjectFlags |
uint8_t | m_bNoFail: 1 |
uint8_t | m_bDeferConstruction: 1 |
Struct of optional parameters passed to SpawnActor function(s).
|
strong |
Modes that SpawnActor can use the supplied name when it is not None.
|
inline |
Getter for m_bRemoteOwned.
uint8_t Karma::FActorSpawnParameters::m_bDeferConstruction |
Determines whether the construction script will be run. If true, the construction script will not be run on the spawned Actor. Only applicable if the Actor is being spawned from a Blueprint.
uint8_t Karma::FActorSpawnParameters::m_bNoFail |
Determines whether spawning will not fail if certain conditions are not met. If true, spawning will not fail because the class being spawned is bStatic = true
or because the class of the template Actor is not the same as the class of the Actor being spawned.
APawn* Karma::FActorSpawnParameters::m_Instigator |
The APawn that is responsible for damage done by the spawned Actor
std::string Karma::FActorSpawnParameters::m_Name |
A name to assign as the Name of the Actor being spawned. If no value is specified, the name of the spawned Actor will be automatically generated using the form [Class]_[Number].
ESpawnActorNameMode Karma::FActorSpawnParameters::m_NameMode |
In which way should SpawnActor should treat the supplied Name if not none.
EObjectFlags Karma::FActorSpawnParameters::m_ObjectFlags |
Flags used to describe the spawned actor/object instance.
ULevel* Karma::FActorSpawnParameters::m_OverrideLevel |
The ULevel to spawn the Actor in, i.e. the Outer of the Actor. If left as NULL the Outer of the Owner is used. If the Owner is NULL the persistent level is used.
class UChildActorComponent* Karma::FActorSpawnParameters::m_OverrideParentComponent |
The parent component to set the Actor in.
AActor* Karma::FActorSpawnParameters::m_Owner |
The Actor that spawned this Actor
AActor* Karma::FActorSpawnParameters::m_Template |
An Actor to use as a template when spawning the new Actor. The spawned Actor will be initialized using the property values of the template Actor. If left NULL the class default object (CDO) will be used to initialize the spawned Actor.