Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework
Material state attribute struct
Stores material state value, whether state is set and whether it overrides child state.
| Name | FGizmoElementMaterialAttribute |
| Type | struct |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoElementRenderState.h |
| Include Path | #include "BaseGizmos/GizmoElementRenderState.h" |
Syntax
USTRUCT ()
struct FGizmoElementMaterialAttribute
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bOverridesChildState | bool | True if this attribute overrides child state attributes. | BaseGizmos/GizmoElementRenderState.h | |
| Value | TWeakObjectPtr< UMaterialInterface > | Material value. | BaseGizmos/GizmoElementRenderState.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const UMaterialInterface * GetMaterial() |
Return the material value. | BaseGizmos/GizmoElementRenderState.h | |
void Reset() |
Reset attribute to default values. | BaseGizmos/GizmoElementRenderState.h | |
void SetMaterial
(
TWeakObjectPtr< UMaterialInterface > InColor, |
Set material value and override flag. | BaseGizmos/GizmoElementRenderState.h | |
void UpdateState
(
const FGizmoElementMaterialAttribute& InChildMaterialAttribute |
Update this state based on a child state attribute. | BaseGizmos/GizmoElementRenderState.h |