Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule
Annotation to define a entrance locations for a Smart Object Slot. This can be used to add multiple entry points to a slot, or to validate the entries against navigation data.
| Name | FSmartObjectSlotEntranceAnnotation |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/Annotations/SmartObjectSlotEntranceAnnotation.h |
| Include Path | #include "Annotations/SmartObjectSlotEntranceAnnotation.h" |
Syntax
USTRUCT (Meta=(DisplayName="Entrance"))
struct FSmartObjectSlotEntranceAnnotation : public FSmartObjectSlotAnnotation
Inheritance Hierarchy
- FSmartObjectDefinitionData → FSmartObjectSlotAnnotation → FSmartObjectSlotEntranceAnnotation
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
PRAGMA_DISABLE_DEPRECATION_WARNINGS FSmartObjectSlotEntranceAnnotation () |
Macro needed to avoid deprecation errors with "Tag" being copied or created in the default methods. | Annotations/SmartObjectSlotEntranceAnnotation.h | |
| Annotations/SmartObjectSlotEntranceAnnotation.h | |||
| Annotations/SmartObjectSlotEntranceAnnotation.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bCheckTransitionTrajectory | uint8 | If set to true, collisions will be checked between the transition from navigation location and slot location. | Annotations/SmartObjectSlotEntranceAnnotation.h |
|
| bIsEntry | uint8 | Set to true if the entry can be used to enter the slot. | Annotations/SmartObjectSlotEntranceAnnotation.h |
|
| bIsExit | uint8 | Set to true if the entry can be used to exit the slot. | Annotations/SmartObjectSlotEntranceAnnotation.h |
|
| bTraceGroundLocation | uint8 | If set to true, ground location will be adjusted using a line trace. | Annotations/SmartObjectSlotEntranceAnnotation.h |
|
| Offset | FVector3f | Local space offset of the entry. | Annotations/SmartObjectSlotEntranceAnnotation.h |
|
| Rotation | FRotator3f | Local space rotation of the entry. | Annotations/SmartObjectSlotEntranceAnnotation.h |
|
| SelectionPriority | ESmartObjectEntrancePriority | During entrance selection, the highest priority entrance is selected. | Annotations/SmartObjectSlotEntranceAnnotation.h |
|
| Tags | FGameplayTagContainer | Tags that can be used to identify the entry. | Annotations/SmartObjectSlotEntranceAnnotation.h |
|
| TrajectorySlotHeightOffset | float | Height offset at slot location of the transition collision check. | Annotations/SmartObjectSlotEntranceAnnotation.h |
|
| TrajectoryStartHeightOffset | float | Height offset at start of the transition collision check. | Annotations/SmartObjectSlotEntranceAnnotation.h |
|
| TransitionCheckRadius | float | Radius of the transition trajectory check. | Annotations/SmartObjectSlotEntranceAnnotation.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetTrajectoryColliders
(
const FTransform& SlotTransform, |
Annotations/SmartObjectSlotEntranceAnnotation.h | ||
virtual FVector GetWorldLocation
(
const FTransform& SlotTransform |
Annotations/SmartObjectSlotEntranceAnnotation.h | ||
virtual FRotator GetWorldRotation
(
const FTransform& SlotTransform |
Annotations/SmartObjectSlotEntranceAnnotation.h | ||
void PostSerialize
(
const FArchive& Ar |
Annotations/SmartObjectSlotEntranceAnnotation.h |
Overridden from FSmartObjectSlotAnnotation
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AdjustWorldTransform
(
const FTransform& SlotTransform, |
Called in editor to adjust the transform of the annotation. | Annotations/SmartObjectSlotEntranceAnnotation.h | |
virtual void DrawVisualization
(
FSmartObjectVisualizationContext& VisContext |
Methods to override to draw 3D visualization of the annotation. | Annotations/SmartObjectSlotEntranceAnnotation.h | |
virtual void DrawVisualizationHUD
(
FSmartObjectVisualizationContext& VisContext |
Methods to override to draw canvas visualization of the annotation. | Annotations/SmartObjectSlotEntranceAnnotation.h | |
virtual FTransform GetAnnotationWorldTransform
(
const FTransform& SlotTransform |
Returns the world space transform of the annotation. | Annotations/SmartObjectSlotEntranceAnnotation.h | |
virtual bool HasTransform() |
Annotations/SmartObjectSlotEntranceAnnotation.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Annotations/SmartObjectSlotEntranceAnnotation.h | |||
| Annotations/SmartObjectSlotEntranceAnnotation.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Tag_DEPRECATED | FGameplayTag | Tag that can be used to identify the entry. | Annotations/SmartObjectSlotEntranceAnnotation.h |