Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectSubsystem
Description
Executes the provided function using the runtime instance associated to the provided handle. Method produces log messages with provided context if provided handle is not set or associated instance can't be found. Method provides a thread safe way to modify a runtime instance.
| Name | ExecuteOnValidatedMutableRuntime |
| 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 ExecuteOnValidatedMutableRuntime
(
const FSmartObjectHandle SlotHandle,
TFunctionRef < void &)> Function,
const ANSICHAR * CallingFunctionName
) const
Whether the runtime instance 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. |
| CallingFunctionName | String describing the context in which the method is called (e.g. caller function name). |