Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectComponent
References
| Module | SmartObjectsModule |
| Header | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectComponent.h |
| Include | #include "SmartObjectComponent.h" |
| Source | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Private/SmartObjectComponent.cpp |
UFUNCTION (BlueprintCallable, Category="SmartObject",
Meta=(DisplayName="Set SmartObject Enabled (default reason: Gameplay)", ReturnDisplayName="Status changed"))
bool SetSmartObjectEnabled
(
const bool bEnable
) const
Remarks
Enables or disables the smart object using the default reason (i.e. Gameplay). false if it was not possible to change the enabled state (ie. if it's not registered or there is no smart object subsystem).