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 read information from a runtime instance or from its slots.
| Name | ExecuteOnValidatedRuntimeAndSlot |
| 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 ExecuteOnValidatedRuntimeAndSlot
(
const FSmartObjectSlotHandle & SlotHandle,
TFunctionRef < void &, const FSmartObjectRuntimeSlot &)> Function,
const ANSICHAR * CallingFunctionName
) const
Whether the runtime instance and slot were found, were 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). |