Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectSubsystem > API/Plugins/SmartObjectsModule/USmartObjectSubsystem/AddComponentToSimulation
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 &42; AddComponentToSimulation
&40;
USmartObjectComponent & SmartObjectComponent,
const FSmartObjectCollectionEntry & CollectionEntry
&41;
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. |
| bCommitChanges | Indicates if deferred commands must be flushed. Set to 'true' by default but could be set to 'false' when adding batch of components. |