Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectBlueprintFunctionLib-
Description
Removes from the simulation all smart objects for an actor.
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 | RemoveSmartObject |
| 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 RemoveSmartObject
(
AActor * SmartObjectActor
)
True if the requested operation succeeded; false otherwise
Parameters
| Name | Remarks |
|---|---|
| SmartObjectActor | The actor containing the smart objects to add or remove from the simulation |
See Also
-
SetSmartObjectEnabled
-
SetMultipleSmartObjectsEnabled