Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule
References
| Module | SmartObjectsModule |
| Header | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectVisualizationContext.h |
| Include | #include "SmartObjectVisualizationContext.h" |
Syntax
struct FSmartObjectVisualizationContext
Remarks
Helper class used for Smart Object Annotation rendering.
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | AnnotationIndex | Index of the visualized annotation. | |
| bool | bIsAnnotationSelected | True, if the annotation is currently selected | |
| bool | bIsSlotSelected | True, if the slot is currently selected | |
| FCanvas * | Canvas | Canvas to render to during DrawVisualizationHUD(). | |
| const USmartObjectDefinition & | Definition | Pointer to the visualized Smart Object definition. | |
| const UFont * | Font | Pointer to valid engine small font. | |
| FTransform | OwnerLocalToWorld | Transform of the owner object. | |
| FPrimitiveDrawInterface * | PDI | Primitive draw interface to draw with during DrawVisualization(). | |
| const AActor * | PreviewActor | Actor used for previewing the Smart Object. | |
| TSubclassOf< USmartObjectSlotValidationFilter > | PreviewValidationFilterClass | Validation filter class used for previewing. | |
| FLinearColor | SelectedColor | Color for a selection, cached from UEditorStyleSettings. | |
| int32 | SlotIndex | Index of the visualized slot, or invalid of the annotation is on the object. | |
| const FSceneView * | View | Current view to draw to. | |
| const UWorld & | World | World associated with the drawing. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSmartObjectVisualizationContext
(
const USmartObjectDefinition& InDefinition, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | DrawArrow
(
const FVector& Start, |
Draws arrow from Start to End. | |
| void | DrawString
(
const FVector& Location, |
Draws string on canvas centered at specified world location. | |
| void | DrawString
(
const float StartX, |
Draws string on canvas at specified canvas location. | |
| FVector::FReal | GetDistanceToCamera
(
const FVector& Location |
||
| bool | IsLocationVisible
(
const FVector& Location |
||
| bool | |||
| bool | |||
| FVector2D | Projects world location into canvas screen space. |