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 (specific reason)", ReturnDisplayName="Status changed"))
bool SetSmartObjectEnabledForReason
(
FGameplayTag ReasonTag,
const bool bEnabled
) const
Remarks
Enables or disables the smart object for the specified reason. false if it was not possible to change the enabled state (ie. if it's not registered or there is no smart object subsystem).
Parameters
| Name | Description |
|---|---|
| ReasonTag | Valid Tag to specify the reason for changing the enabled state of the object. Method will ensure if not valid (i.e. None). |
| bEnabled | If true enables the smart object, disables otherwise. |