Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectSubsystem
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 |
UFUNCTION&40;BlueprintCallable, Category&61;"SmartObject"&41;
bool SetEnabled
&40;
const FSmartObjectHandle Handle,
const bool bEnabled
&41;
Remarks
Enables or disables the entire smart object represented by the provided handle. Delegate 'OnEvent' is broadcasted with ESmartObjectChangeReason::OnEnabled/ESmartObjectChangeReason::OnDisabled if state changed. True when associated smart object is found and set (or already set) to desired state; false otherwise.
Parameters
| Name | Description |
|---|---|
| Handle | Handle to the smart object. |
| bEnabled | If true enables the smart object, disables otherwise. |