Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/UGizmoElementBase
Description
Additional view-space offset to apply to the element, affecting both visuals and the hit geometry. Greater values are further away from the camera. An example use case: A large sphere and view-facing rectangle are both at the origin, but the rectangle should draw on top of the sphere. The sphere would otherwise overlap the rectangle.
| Name | SetViewDepthOffset |
| Type | function |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoElementBase.h |
| Include Path | #include "BaseGizmos/GizmoElementBase.h" |
| Source | /Engine/Source/Runtime/InteractiveToolsFramework/Private/BaseGizmos/GizmoElementBase.cpp |
virtual void SetViewDepthOffset
(
float InViewDepthOffset
)