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 * AddComponentToSimulation
(
USmartObjectComponent & SmartObjectComponent,
const FSmartObjectCollectionEntry & CollectionEntry
)
Remarks
Registers a collection entry to the simulation and creates its associated runtime instance.
Parameters
| Name | Description |
|---|---|
| SmartObjectComponent | The component to add to the simulation and for which a runtime entry might be created or an existing one found |
| CollectionEntry | The associated collection entry that got created to add the component to the simulation. |