Navigation
API > API/Plugins > API/Plugins/SceneStateTasks
Spawns an actor of a given class
| Name | FSceneStateSpawnActorTask |
| Type | struct |
| Header File | /Engine/Plugins/VirtualProduction/SceneState/Source/SceneStateTasks/Public/SceneStateSpawnActorTask.h |
| Include Path | #include "SceneStateSpawnActorTask.h" |
Syntax
USTRUCT (DisplayName="Spawn Actor", Category="Core")
struct FSceneStateSpawnActorTask : public FSceneStateTask
Inheritance Hierarchy
- FSceneStateTask → FSceneStateSpawnActorTask
Derived Classes
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FInstanceDataType | FSceneStateSpawnActorTaskInstance | SceneStateSpawnActorTask.h |
Functions
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnActorSpawned
(
AActor* InActorChecked, |
Called after the actor has spawned for additional handling | SceneStateSpawnActorTask.h | |
void SetSpawnedActor
(
const FSceneStateExecutionContext& InContext, |
Updates the spawned actor reference value (if set) to the newly spawned actor | SceneStateSpawnActorTask.h | |
virtual bool ShouldSpawnActor
(
FStructView InTaskInstance, |
Determines whether the actor should be spawned | SceneStateSpawnActorTask.h | |
void UpdateActorTemplate
(
UObject* InOuter, |
Called to update the actor template from the task instance to match the current actor class | SceneStateSpawnActorTask.h |
Overridden from FSceneStateTask
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const UScriptStruct * OnGetTaskInstanceType() |
SceneStateSpawnActorTask.h | ||
virtual void OnPostEditChange
(
UE::SceneState::FTaskEditChange& InEditChange, |
SceneStateSpawnActorTask.h | ||
virtual void OnStart
(
const FSceneStateExecutionContext& InContext, |
SceneStateSpawnActorTask.h |