Navigation
API > API/Plugins > API/Plugins/UVEditor
Inheritance Hierarchy
- FEditorViewportClient
- IInputBehaviorSource
- FUVEditor2DViewportClient
References
| Module | UVEditor |
| Header | /Engine/Plugins/Editor/UVEditor/Source/UVEditor/Public/UVEditor2DViewportClient.h |
| Include | #include "UVEditor2DViewportClient.h" |
Syntax
class FUVEditor2DViewportClient :
public FEditorViewportClient,
public IInputBehaviorSource
Remarks
Client used to display a 2D view of the UV's, implemented by using a perspective viewport with a locked camera.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bDrawGrid | ||
| bool | bDrawGridRulers | ||
| TObjectPtr< UInputBehaviorSet > | BehaviorSet | These get added in AddReferencedObjects for memory management. | |
| TObjectPtr< UCanvas > | CanvasObject | ||
| TUniquePtr< FEditor2DScrollBehaviorTarget > | ScrollBehaviorTarget | Note that it's generally less hassle if the unique ptr types are complete here, not forward declared, else we get compile errors if their destruction shows up anywhere in the header. | |
| TObjectPtr< UUVTool2DViewportAPI > | UVTool2DViewportAPI | ||
| TObjectPtr< UUVToolViewportButtonsAPI > | ViewportButtonsAPI | ||
| TUniquePtr< FEditor2DMouseWheelZoomBehaviorTarget > | ZoomBehaviorTarget |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FUVEditor2DViewportClient
(
FEditorModeTools* InModeTools, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| bool | |||
| void | DrawGrid
(
const FSceneView* View, |
||
| void | DrawGridRulers
(
FViewport& InViewport, |
||
| void | DrawUDIMLabels
(
FViewport& InViewport, |
||
| bool | |||
| float | |||
| bool | |||
| float | |||
| bool | |||
| float | |||
| UUVToolViewportButtonsAPI::ESelectionMode | |||
| void | SetLocationGridSnapEnabled
(
bool bEnabled |
||
| void | SetLocationGridSnapValue
(
float SnapValue |
||
| void | SetRotationGridSnapEnabled
(
bool bEnabled |
||
| void | SetRotationGridSnapValue
(
float SnapValue |
||
| void | SetScaleGridSnapEnabled
(
bool bEnabled |
||
| void | SetScaleGridSnapValue
(
float SnapValue |
||
| void |
Overridden from FEditorViewportClient
| Type | Name | Description | |
|---|---|---|---|
| bool | CanSetWidgetMode
(
UE::Widget::EWidgetMode NewMode |
Whether or not the new widget mode can be set in this viewport | |
| void | DrawCanvas
(
FViewport& InViewport, |
Called to draw onto the viewports 2D canvas | |
| UE::Widget::EWidgetMode | |||
| void | SetWidgetMode
(
UE::Widget::EWidgetMode NewMode |
Sets the current widget mode | |
| bool |
Overridden from FViewportClient
| Type | Name | Description | |
|---|---|---|---|
| bool | InputKey
(
const FInputKeyEventArgs& EventArgs |
FEditorViewportClient. |
Overridden from FViewElementDrawer
| Type | Name | Description | |
|---|---|---|---|
| void | Draw
(
const FSceneView* View, |
FViewElementDrawer interface |
Overridden from FGCObject
| Type | Name | Description | |
|---|---|---|---|
| void | AddReferencedObjects
(
FReferenceCollector& Collector |
FGCObject. |
Overridden from IInputBehaviorSource
| Type | Name | Description | |
|---|---|---|---|
| const UInputBehaviorSet * | IInputBehaviorSource. |