ASmartObjectCollection

Actor holding smart object persistent data

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

AActor

ASmartObjectCollection

References

Module

SmartObjectsModule

Header

/Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectCollection.h

Include

#include "SmartObjectCollection.h"

Syntax

UCLASS(NotBlueprintable,
       HideCategories=(Rendering, Replication, Collision, Input, HLOD, Actor, LOD, Cooking, WorldPartition),
       NotPlaceable)
class ASmartObjectCollection : public AActor

Remarks

Actor holding smart object persistent data

Variables

Name Description

Protected variable

bool

 

bBuildingForWorldPartition

Protected variable UProperty Category, EditAnywhere

bool

 

bBuildOnDemand

Protected variable UProperty Category visibleanywhere

FBox

 

Bounds

Protected variable

bool

 

bRegistered

Protected variable UProperty Category visibleanywhere

TArray< FSmartO...

 

CollectionEntries

Protected variable UProperty Category visibleanywhere

TArray< TObject...

 

Definitions

Protected variable UProperty

TMap< FSmartObj...

 

RegisteredIdToObjectMap

Constructors

Name Description

Protected function

ASmartObjectCollection

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Protected function

bool

 

AddSmartObject

(
    USmartObjectComponent& SOComponent
)

Public function Const

const FBox &

 

GetBounds()

Public function Const

const USmart...

 

GetDefinitionForEntry

(
    const FSmartObjectCollectionEntry&...
)

Public function Const

const TArray...

 

GetEntries()

Protected function Const

USmartObject...

 

GetSmartObjectComponent

(
    const FSmartObjectID& SmartObjectI...
)

Public function Const

bool

 

IsBuildingForWorldPartition()

Protected function Const

bool

 

IsBuildOnDemand()

Protected function Const

bool

 

IsRegistered()

Protected function

void

 

OnRegistered()

Protected function

void

 

OnUnregistered()

Protected function UFunction Category callineditor

void

 

RebuildCollection()

Protected function

void

 

RebuildCollection

(
    const TConstArrayView< USmartObject...
)

Protected function

bool

 

RegisterWithSubsystem

(
    const FString& Context
)

Protected function

bool

 

RemoveSmartObject

(
    USmartObjectComponent& SOComponent
)

Public function

void

 

ResetCollection

(
    const int32 ExpectedNumElements
)

Protected function

void

 

SetBounds

(
    const FBox InBounds
)

Public function

void

 

SetBuildingForWorldPartition

(
    const bool bValue
)

Protected function

bool

 

UnregisterWithSubsystem

(
    const FString& Context
)

Public function

void

 

ValidateDefinitions()

Overridden from AActor

Name Description

Protected function Virtual

void

 

Destroyed()

Called when this actor is explicitly being destroyed during gameplay or in the editor, not called during level streaming or gameplay ending

Protected function Virtual

void

 

EndPlay

(
    const EEndPlayReason::Type EndPlayR...
)

Overridable function called whenever this actor is being removed from a level

Protected function Virtual

void

 

PostActorCreated()

Called when an actor is done spawning into the world (from UWorld::SpawnActor), both in the editor and during gameplay For actors with a root component, the location and rotation will have already been set.

Protected function Virtual

void

 

PostUnregisterAllComponents()

Called after all currently registered components are cleared

Protected function Virtual

void

 

PreRegisterAllComponents()

Called before all the components in the Components array are registered, called both in editor and during gameplay

Protected function Virtual Const

bool

 

SupportsExternalPackaging()

Does this actor supports external packaging?

Overridden from UObject

Name Description

Protected function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally

Protected function Virtual

void

 

PostEditUndo()

Called after applying a transaction to the object.