Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseGizmos > API/Runtime/InteractiveToolsFramework/BaseGizmos/UGizmoElementBase
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoElementBase.h |
| Include | #include "BaseGizmos/GizmoElementBase.h" |
Syntax
struct FRenderTraversalState
Remarks
Render traversal state structure used to maintain the current render state while rendering. As the gizmo element hierarchy is traversed, current state is maintained and updated. Element state attribute inheritance works as follows:
- Child element state that is not set inherits from parent state. - Overrides: parent element state with override set to true replaces all child state regardless of whether the child state has been set.
Variables
| Type | Name | Description | |
|---|---|---|---|
| EGizmoElementInteractionState | InteractionState | Interact state, if not equal to none, overrides the element's interact state. | |
| FGizmoElementLineRenderStateAttributes | LineRenderState | Current state used for rendering lines. | |
| FTransform | LocalToWorldTransform | LocalToWorld transform Note: non-uniform scale is not supported and the X scale element will be used for uniform scaling. | |
| FGizmoElementMeshRenderStateAttributes | MeshRenderState | Current state used for rendering meshes. | |
| double | PixelToWorldScale | Pixel to world scale. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FLinearColor | Returns the line color based on the current interaction state. | ||
| const UMaterialInterface * | Returns the mesh material based on the current interaction state. | ||
| FLinearColor | Returns the mesh vertex color based on the current interaction state. | ||
| void | Initialize
(
const FSceneView* InSceneView, |
Initialize state. |