Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseGizmos
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGizmoViewContext
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoViewContext.h |
| Include | #include "BaseGizmos/GizmoViewContext.h" |
Syntax
class UGizmoViewContext : public UObject
Remarks
A context object that is meant to hold the scene information for the hovered viewport on a game thread, to be used by a gizmo later for hit testing. The organization mirrors FSceneView so that functions could be written in a templated way to use either FSceneView or UGizmoViewContext, though UGizmoViewContext only keeps the needed data.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsPerspectiveProjection | ||
| FIntRect | UnscaledViewRect | ||
| FVector | ViewLocation | ||
| FMatrices | ViewMatrices |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FVector | |||
| FVector | GetViewRight () |
FSceneView-like functions/properties: | |
| FVector | GetViewUp () |
||
| bool | As a function just for similarity with FSceneView. | ||
| void | ResetFromSceneView
(
const FSceneView& SceneView |
Use this to reinitialize the object each frame for the hovered viewport. | |
| bool | ScreenToPixel
(
const FVector4& ScreenPoint, |
||
| FVector4 | WorldToScreen
(
const FVector& WorldPoint |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FMatrices | Wrapping class for the matrices so that they can be accessed in the same way that they are accessed in FSceneView. |