Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseGizmos
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoRenderingUtil.h |
| Include | #include "BaseGizmos/GizmoRenderingUtil.h" |
| Source | /Engine/Source/Runtime/InteractiveToolsFramework/Private/BaseGizmos/GizmoRenderingUtil.cpp |
namespace UE
{
namespace GizmoRenderingUtil
{
UMaterialInterface * UE::GizmoRenderingUtil::GetDefaultGizmoComponentMaterial
(
const FLinearColor & Color,
UObject * Outer
)
}
}
Remarks
Gets a custom material suitable to use for gizmo components. The material is drawn on top of opaque geometry with dithering for portions behind opaque materials, but uses the custom depth buffer to properly occlude itself. Components using this material should set bRenderCustomDepth to true so they can occlude other gizmo elements. It is also suggested that TranslucencySortPriority be set to something like UE::GizmoRenderingUtil::GIZMO_TRANSLUCENCY_SORT_PRIORITY so that the component is drawn on top of other translucent materials.
Parameters
| Name | Description |
|---|---|
| Outer | Object to set as outer for the material instance. Typically can be left as nullptr to use transient package. |