Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectSubsystem
References
| Module | SmartObjectsModule |
| Header | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectSubsystem.h |
| Include | #include "SmartObjectSubsystem.h" |
| Source | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Private/SmartObjectSubsystem.cpp |
FSmartObjectHandle CreateSmartObject
(
const USmartObjectDefinition & Definition,
const FTransform & Transform,
const FConstStructView OwnerData
)
Remarks
Creates a new SmartObject runtime instance from an external system. Handle to the newly created smartobject if the operation was successful.
Parameters
| Name | Description |
|---|---|
| Definition | SmartObject definition that the entry will use |
| Transform | World position where the entry will be initially located |
| OwnerData | Payload stored in the created runtime instance to identify the owner of the SmartObject |