Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/FSmartObjectContainer
References
| Module | SmartObjectsModule |
| Header | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectPersistentCollection.h |
| Include | #include "SmartObjectPersistentCollection.h" |
| Source | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Private/SmartObjectPersistentCollection.cpp |
FSmartObjectCollectionEntry * AddSmartObject
(
USmartObjectComponent & SOComponent,
bool & bOutAlreadyInCollection
)
Remarks
Creates a new entry for a given component. Pointer to the created or existing entry. An unset value indicates a registration error.
Parameters
| Name | Description |
|---|---|
| SOComponent | SmartObject Component for which a new entry must be created |
| bAlreadyInCollection | Output parameter to indicate if an existing entry was returned instead of a newly created one. |