Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectBlueprintFunctionLib-
Description
Marks all smart objects for an actor as enabled or not according to 'bEnabled'. A smart object marked as Enabled is available for queries.
Disabling a smart object will not interrupt active interactions, it will simply mark the object unavailable for new queries and broadcast an event that can be handled by the interacting agent to complete earlier. If the object should not be consider usable anymore and the interactions aborted then consider using one of the Add/RemoveSmartObject functions.
| Name | SetSmartObjectEnabled |
| Type | function |
| Header File | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectBlueprintFunctionLibrary.h |
| Include Path | #include "SmartObjectBlueprintFunctionLibrary.h" |
| Source | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Private/SmartObjectBlueprintFunctionLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="SmartObject", Meta=(ReturnDisplayName="bSuccess"))
static bool SetSmartObjectEnabled
(
AActor * SmartObjectActor,
const bool bEnabled
)
True if the requested operation succeeded; false otherwise
Parameters
| Name | Remarks |
|---|---|
| SmartObjectActor | The actor containing the smart objects to enable/disable |
| bEnabled | Whether the smart objects should be enabled or not |
See Also
-
AddSmartObject
-
AddMultipleSmartObjects