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 (BlueprintCallable, BlueprintPure, Category="SmartObject",
Meta=(DisplayName="Is SmartObject Enabled (for specific reason)", ReturnDisplayName="Enabled"))
bool IsEnabledForReason
(
const FSmartObjectHandle Handle,
FGameplayTag ReasonTag
) const
Remarks
Returns the enabled state of the smart object represented by the provided handle based on a specific reason. True when associated smart object is found and set to be enabled. False otherwise.
Parameters
| Name | Description |
|---|---|
| Handle | Handle to the smart object. |
| ReasonTag | Valid Tag to test if enabled for a specific reason. Method will ensure if not valid (i.e. None). |