Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectDefinition
Description
Returns the transform (in world space) of the given slot index.
Method will ensure on invalid slot index.
| Name | GetSlotWorldTransform |
| Type | function |
| Header File | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectDefinition.h |
| Include Path | #include "SmartObjectDefinition.h" |
| Source | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Private/SmartObjectDefinition.cpp |
UFUNCTION (BlueprintCallable, BlueprintPure, Category="SmartObject")
FTransform GetSlotWorldTransform
(
const int32 SlotIndex,
const FTransform & OwnerTransform
) const
Transform (in world space) of the slot associated to SlotIndex, or OwnerTransform if index is invalid.
Parameters
| Name | Remarks |
|---|---|
| OwnerTransform | Transform (in world space) of the slot owner. |
| SlotIndex | Index within the list of slots. |