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, Category="SmartObject")
USmartObjectComponent * GetSmartObjectComponent
(
const FSmartObjectClaimHandle & ClaimHandle,
ETrySpawnActorIfDehydrated TrySpawnActorIfDehydrated
) const
Remarks
Returns the component associated to the claim handle if still accessible. In some scenarios the component may no longer exist but its smart object data could (e.g. streaming) A pointer to the USmartObjectComponent* associated to the handle.
Parameters
| Name | Description |
|---|---|
| ClaimHandle | Handle to a claimed slot returned by any of the Claim methods. |
| TrySpawnActorIfDehydrated | Indicates if the subsystem should try to spawn the actor/component associated to the smartobject if it is currently owned by an instanced actor. |