Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectSubsystem
Description
Executes the provided function if a valid mutable view can be created for the provided slot handle. In a multithreaded scenario, the method will prevent the slot from being modified during the execution of the function.
| Name | MutateSlotData |
| Type | function |
| Header File | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectSubsystem.h |
| Include Path | #include "SmartObjectSubsystem.h" |
| Source | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Private/SmartObjectSubsystem.cpp |
bool MutateSlotData
(
const FSmartObjectSlotHandle & SlotHandle,
TFunctionRef < void &)> Function
) const
Whether the slot was found, was valid, and the function was called
Parameters
| Name | Remarks |
|---|---|
| SlotHandle | Handle to a smart object slot. |
| Function | Function to execute if a valid view can be created |
See Also
- ReadSlotData