Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework
Structs used to store gizmo element render state. Color state attribute struct
Stores color state value, whether state is set and whether it overrides child state.
| Name | FGizmoElementColorAttribute |
| Type | struct |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoElementRenderState.h |
| Include Path | #include "BaseGizmos/GizmoElementRenderState.h" |
Syntax
USTRUCT ()
struct FGizmoElementColorAttribute
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DefaultColor | FLinearColor | BaseGizmos/GizmoElementRenderState.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bHasValue | bool | True if value has been set. | BaseGizmos/GizmoElementRenderState.h | |
| bOverridesChildState | bool | True if this attribute overrides child state attributes. | BaseGizmos/GizmoElementRenderState.h | |
| Value | FLinearColor | Color value. | BaseGizmos/GizmoElementRenderState.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FLinearColor GetColor() |
Return the color value. This returns the default color value if no value has been set. | BaseGizmos/GizmoElementRenderState.h | |
void Reset() |
Reset attribute to default values. | BaseGizmos/GizmoElementRenderState.h | |
void SetColor
(
FLinearColor InColor, |
Set color value and override flag. | BaseGizmos/GizmoElementRenderState.h | |
void UpdateState
(
const FGizmoElementColorAttribute& InChildColorAttribute |
Update this state based on a child state attribute. | BaseGizmos/GizmoElementRenderState.h |