Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule
References
| Module | SmartObjectsModule |
| Header | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectPersistentCollection.h |
| Include | #include "SmartObjectPersistentCollection.h" |
Syntax
USTRUCT ()
struct FSmartObjectContainer
Variables
| Type | Name | Description | |
|---|---|---|---|
| friend | ASmartObjectPersistentCollection | ||
| FBox | Bounds | ||
| TArray< FSmartObjectCollectionEntry > | CollectionEntries | ||
| TArray< TObjectPtr< const USmartObjectDefinition > > | Definitions | ||
| TObjectPtr< const UObject > | Owner | Used for reporting and debugging | |
| TMap< FSmartObjectHandle, FSoftObjectPath > | RegisteredIdToObjectMap | ||
| friend | USmartObjectSubsystem |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSmartObjectContainer
(
UObject* InOwner |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FSmartObjectCollectionEntry * | AddSmartObject
(
USmartObjectComponent& SOComponent, |
Creates a new entry for a given component. | |
| FSmartObjectCollectionEntry * | AddSmartObjectInternal
(
const FSmartObjectHandle Handle, |
Assumes SOComponent to not be part of the collection yet | |
| void | Append
(
const FSmartObjectContainer& Other |
||
| const FBox & | GetBounds () |
||
| const USmartObjectDefinition * | GetDefinitionForEntry
(
const FSmartObjectCollectionEntry& Entry |
||
| TConstArrayView< FSmartObjectCollectionEntry > | GetEntries () |
||
| FString | GetFullName () |
||
| USmartObjectComponent * | GetSmartObjectComponent
(
const FSmartObjectHandle SmartObjectHandle |
||
| bool | IsEmpty () |
||
| int32 | Remove
(
const FSmartObjectContainer& Other |
||
| bool | RemoveSmartObject
(
USmartObjectComponent& SOComponent |
||
| void | |||
| bool | UpdateSmartObject
(
const USmartObjectComponent& SOComponent |
If SOComponent is already contained by this FSmartObjectContainer instance then data relating to it will get updated | |
| void |