Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule
| Name | FSmartObjectContainer |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectPersistentCollection.h |
| Include Path | #include "SmartObjectPersistentCollection.h" |
Syntax
USTRUCT ()
struct FSmartObjectContainer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSmartObjectContainer
(
UObject* InOwner |
SmartObjectPersistentCollection.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FSmartObjectContainer() |
SmartObjectPersistentCollection.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSmartObjectCollectionEntry * AddSmartObject
(
USmartObjectComponent& SOComponent, |
SmartObjectPersistentCollection.h | ||
FSmartObjectCollectionEntry * AddSmartObject
(
TNotNull< USmartObjectComponent* > SOComponent, |
Creates a new entry for a given component. | SmartObjectPersistentCollection.h | |
void Append
(
const FSmartObjectContainer& Other |
SmartObjectPersistentCollection.h | ||
const FBox & GetBounds() |
SmartObjectPersistentCollection.h | ||
const USmartObjectDefinition * GetDefinitionForEntry
(
const FSmartObjectCollectionEntry& Entry, |
SmartObjectPersistentCollection.h | ||
const USmartObjectDefinition * GetDefinitionForEntry
(
const FSmartObjectCollectionEntry& Entry |
SmartObjectPersistentCollection.h | ||
TConstArrayView< FSmartObjectCollectionEntry > GetEntries() |
SmartObjectPersistentCollection.h | ||
USmartObjectComponent * GetSmartObjectComponent
(
const FSmartObjectHandle SmartObjectHandle |
SmartObjectPersistentCollection.h | ||
bool IsEmpty() |
SmartObjectPersistentCollection.h | ||
int32 Remove
(
const FSmartObjectContainer& Other |
SmartObjectPersistentCollection.h | ||
bool RemoveSmartObject
(
USmartObjectComponent& SOComponent |
SmartObjectPersistentCollection.h | ||
bool RemoveSmartObject
(
TNotNull< USmartObjectComponent* > SOComponent |
SmartObjectPersistentCollection.h | ||
void SetBounds
(
const FBox& InBounds |
SmartObjectPersistentCollection.h | ||
bool UpdateSmartObject
(
const USmartObjectComponent& SOComponent |
SmartObjectPersistentCollection.h | ||
bool UpdateSmartObject
(
TNotNull< const USmartObjectComponent* > SOComponent |
If SOComponent is already contained by this FSmartObjectContainer instance then data relating to it will get updated | SmartObjectPersistentCollection.h | |
void ValidateDefinitions() |
SmartObjectPersistentCollection.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSmartObjectCollectionEntry * AddSmartObjectInternal
(
const FSmartObjectHandle Handle, |
Assumes SOComponent to not be part of the collection yet | SmartObjectPersistentCollection.h | |
FSmartObjectCollectionEntry * AddSmartObjectInternal
(
const FSmartObjectHandle Handle, |
SmartObjectPersistentCollection.h | ||
void ConvertDeprecatedDefinitionsToReferences() |
SmartObjectPersistentCollection.h | ||
void ConvertDeprecatedEntries() |
SmartObjectPersistentCollection.h | ||
FString GetFullName() |
SmartObjectPersistentCollection.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSmartObjectContainer & operator=
(
FSmartObjectContainer&& Other |
SmartObjectPersistentCollection.h | ||
FSmartObjectContainer & operator=
(
const FSmartObjectContainer& Other |
SmartObjectPersistentCollection.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Definitions_DEPRECATED | TArray< TObjectPtr< const USmartObjectDefinition > > | SmartObjectPersistentCollection.h | ||
| RegisteredIdToObjectMap_DEPRECATED | TMap< FSmartObjectHandle, FSoftObjectPath > | SmartObjectPersistentCollection.h |