Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectBlueprintFunctionLib-
Description
Adds to the simulation all smart objects for multiple actors or removes them according to 'bAdd'.
Removing a smart object from the simulation will interrupt all active interactions. If you simply need to make the object unavailable for queries consider using one of the SetSmartObjectEnabled functions so active interactions can be gracefully completed.
| Name | AddOrRemoveMultipleSmartObjects |
| 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 AddOrRemoveMultipleSmartObjects
(
const TArray < AActor * > & SmartObjectActors,
const bool bAdd
)
True if all actors were valid and the requested operation succeeded; false otherwise
Parameters
| Name | Remarks |
|---|---|
| SmartObjectActors | The actors containing the smart objects to add or remove from the simulation |
| bAdd | Whether the smart objects should be added or removed from the simulation |
See Also
-
SetSmartObjectEnabled
-
SetMultipleSmartObjectsEnabled