UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GizmoElementCylinderLocals Namespace Reference

Functions

template<typename RealType = float>
int32 GetDashNumAndScale (const RealType &InLineLength, const RealType &InDashLength, const RealType &InDashGapLength, RealType &OutScaleFactor)
 

Function Documentation

◆ GetDashNumAndScale()

template<typename RealType = float>
int32 GizmoElementCylinderLocals::GetDashNumAndScale ( const RealType &  InLineLength,
const RealType &  InDashLength,
const RealType &  InDashGapLength,
RealType &  OutScaleFactor 
)

Normalizes the given dash parameters to fit the input range.

Parameters
OutScaleFactorthe scale factor to apply to the dash length and gap length.
Returns
the number of dashes that fit within the range.