Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectBlueprintFunctionLib-
Description
Returns the entrance transform (offset and rotation combined) for a specific entrance annotation on a slot. This is equivalent to GetSlotEntranceOffsetAndRotation but returns the result as a single FTransform.
| Name | GetSlotEntranceTransform |
| 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=(DisplayName="Get Slot Entrance Transform", ReturnDisplayName="bFound", Keywords="entrance entry transform offset rotation approach navigation"))
static bool GetSlotEntranceTransform
(
const USmartObjectDefinition * Definition,
int32 SlotIndex,
int32 EntranceIndex,
FTransform & OutTransform
)
True if the entrance annotation was found at the given indices
Parameters
| Name | Remarks |
|---|---|
| Definition | The smart object definition to query |
| SlotIndex | Index of the slot to query |
| EntranceIndex | Index of the entrance annotation within the slot (0 for first entrance) |
| OutTransform | The local space transform of the entrance (translation from Offset, rotation from Rotation, unit scale) |