Skip to content

FSMPreviewObjectSpawner

Module: SMPreviewEditor

#include <SMPreviewObject.h>

Description

struct FSMPreviewObjectSpawner;

Contains spawn data and an exported template.

Public Functions

Name
FSMPreviewObjectSpawner()
~FSMPreviewObjectSpawner()
void SaveActorDefaults(UObject * Outer, bool bModify =true)
void LoadActorDefaults(UObject * Outer)
bool operator==(const FSMPreviewObjectSpawner & OtherSpawner) const

Public Attributes

Name
TSubclassOf< UObject > Class
FVector Location
FRotator Rotation
FVector Scale
bool bIsContext
FString ObjectLabel
TObjectPtr< AActor > SpawnedActor
TObjectPtr< AActor > ActorTemplate

Public Functions Documentation

function FSMPreviewObjectSpawner

FSMPreviewObjectSpawner()

function ~FSMPreviewObjectSpawner

~FSMPreviewObjectSpawner()

function SaveActorDefaults

void SaveActorDefaults(
    UObject * Outer,
    bool bModify =true
)

Serialize the SpawnedActor's properties.


function LoadActorDefaults

void LoadActorDefaults(
    UObject * Outer
)

Deserialize properties to the ActorTemplate.


function operator==

inline bool operator==(
    const FSMPreviewObjectSpawner & OtherSpawner
) const

Public Attributes Documentation

variable Class

TSubclassOf< UObject > Class;

variable Location

FVector Location;

variable Rotation

FRotator Rotation;

variable Scale

FVector Scale;

variable bIsContext

bool bIsContext;

variable ObjectLabel

FString ObjectLabel;

Set by world outliner.


variable SpawnedActor

TObjectPtr< AActor > SpawnedActor;

A reference to an actor spawned from the ActorTemplate.


variable ActorTemplate

TObjectPtr< AActor > ActorTemplate;

Loaded from serialized actor properties, used for instantiating the SpawnedActor.


Private Attributes Documentation

variable SavedActorProperties

TArray< uint8 > SavedActorProperties;

Properties for the actor template, serialized separately to prevent circular dependency load issues.