Navigation
API > API/Plugins > API/Plugins/UVEditorTools > API/Plugins/UVEditorTools/ContextObjects
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UUVToolContextObject
- UUVToolViewportButtonsAPI
References
| Module | UVEditorTools |
| Header | /Engine/Plugins/Editor/UVEditor/Source/UVEditorTools/Public/ContextObjects/UVToolViewportButtonsAPI.h |
| Include | #include "ContextObjects/UVToolViewportButtonsAPI.h" |
Syntax
UCLASS&40;&41;
class UUVToolViewportButtonsAPI : public UUVToolContextObject
Remarks
Allows tools to interact with buttons in the viewport
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bGizmoButtonsEnabled | ||
| bool | bSelectionButtonsEnabled | ||
| EGizmoMode | GizmoMode | ||
| float | LocationSnap | ||
| FOnGizmoModeChange | OnGizmoModeChange | ||
| FOnInitiateFocusCameraOnSelection | OnInitiateFocusCameraOnSelection | ||
| FOnSelectionModeChange | OnSelectionModeChange | ||
| float | RotationSnap | ||
| float | ScaleSnap | ||
| ESelectionMode | SelectionMode | ||
| int32 | SnapEnabled |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| bool | |||
| EGizmoMode | GetGizmoMode () |
||
| ESelectionMode | |||
| bool | GetSnapEnabled
(
ESnapTypeFlag SnapMode |
||
| float | GetSnapValue
(
ESnapTypeFlag SnapMode |
||
| void | |||
| void | SetGizmoButtonsEnabled
(
bool bOn |
||
| void | SetGizmoMode
(
EGizmoMode ModeIn, |
||
| void | SetSelectionButtonsEnabled
(
bool bOn |
||
| void | SetSelectionMode
(
ESelectionMode ModeIn, |
||
| void | SetSnapValue
(
ESnapTypeFlag SnapMode, |
||
| void | ToggleSnapEnabled
(
ESnapTypeFlag SnapMode |
Overridden from UUVToolContextObject
| Type | Name | Description | |
|---|---|---|---|
| void | OnToolEnded
(
UInteractiveTool* DeadTool |
Called whenever a tool is ended, for instance to let a context object remove listeners associated with that tool (it shouldn't have to do so, but may choose to for robustness). |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EGizmoMode | |||
| ESnapTypeFlag |