Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectSubsystem
Description
Executes the provided function if a valid const view can be created for the provided handle. In a multithreaded scenario, the method will prevent the instance from being modified during the execution of the function.
| Name | ReadInstanceData |
| 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 ReadInstanceData
(
const FSmartObjectHandle & Handle,
TFunctionRef < void)> Function
) const
Whether the instance was found, was valid, and the function was called
Parameters
| Name | Remarks |
|---|---|
| Handle | Handle to a smart object. |
| Function | Function to execute if a valid view can be created |