Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/Annotations
Inheritance Hierarchy
- FSmartObjectSlotDefinitionData
- FSmartObjectSlotAnnotation
- FSmartObjectSlotEntranceAnnotation
References
| Module | SmartObjectsModule |
| Header | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/Annotations/SmartObjectSlotEntranceAnnotation.h |
| Include | #include "Annotations/SmartObjectSlotEntranceAnnotation.h" |
Syntax
USTRUCT&40;Meta&61;&40;DisplayName&61;"Entrance"&41;&41;
struct FSmartObjectSlotEntranceAnnotation : public FSmartObjectSlotAnnotation
Remarks
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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint8: 1 | bCheckTransitionTrajectory | If set to true, collisions will be checked between the transition from navigation location and slot location. | |
| uint8: 1 | bIsEntry | Set to true if the entry can be used to enter the slot. | |
| uint8: 1 | bIsExit | Set to true if the entry can be used to exit the slot. | |
| uint8: 1 | bTraceGroundLocation | If set to true, ground location will be adjusted using a line trace. | |
| FVector3f | Offset | Local space offset of the entry. | |
| FRotator3f | Rotation | Local space rotation of the entry. | |
| ESmartObjectEntrancePriority | SelectionPriority | During entrance selection, the highest priority entrance is selected. | |
| FGameplayTagContainer | Tags | Tags that can be used to identify the entry. | |
| float | TrajectorySlotHeightOffset | Height offset at slot location of the transition collision check. | |
| float | TrajectoryStartHeightOffset | Height offset at start of the transition collision check. | |
| float | TransitionCheckRadius | Radius of the transition trajectory check. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | Macro needed to avoid deprecation errors with "Tag" being copied or created in the default methods. | ||
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | GetTrajectoryColliders
(
const FTransform& SlotTransform, |
||
| FVector | GetWorldLocation
(
const FTransform& SlotTransform |
||
| FRotator | GetWorldRotation
(
const FTransform& SlotTransform |
||
| void | PostSerialize
(
const FArchive& Ar |
Overridden from FSmartObjectSlotAnnotation
| Type | Name | Description | |
|---|---|---|---|
| void | AdjustWorldTransform
(
const FTransform& SlotTransform, |
Called in editor to adjust the transform of the annotation. | |
| void | DrawVisualization
(
FSmartObjectVisualizationContext& VisContext |
Methods to override to draw 3D visualization of the annotation. | |
| void | DrawVisualizationHUD
(
FSmartObjectVisualizationContext& VisContext |
Methods to override to draw canvas visualization of the annotation. | |
| FTransform | GetAnnotationWorldTransform
(
const FTransform& SlotTransform |
Returns the world space transform of the annotation. | |
| bool | HasTransform () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FSmartObjectSlotEntranceAnnotation & | operator=
(
const FSmartObjectSlotEntranceAnnotation& |
||
| FSmartObjectSlotEntranceAnnotation & |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| FGameplayTag | Tag_DEPRECATED | This property has been deprecated. Use EntranceTags instead. |