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 |
FSmartObjectRuntime * CreateRuntimeInstance
(
const FSmartObjectHandle Handle,
const USmartObjectDefinition & Definition,
FBox Bounds,
USmartObjectComponent * OwnerComponent
)
Remarks
Initializes preconditions, adds to the space partition structure using the specified bounds and broadcasts event. Pointer to the created runtime or nullptr if an error occurs.
Parameters
| Name | Description |
|---|---|
| SmartObjectRuntime | The runtime instance of the SmartObject to initialize |
| Bounds | Bounds used to register the object in the space partition structure |