Exemplo n.º 1
0
 protected static void DrawTextMultiLine(
     DebugPrimitiveRenderer2D renderer,
     string text,
     Color32 color,
     float fontSize,
     float leftX,
     float topY,
     float width,
     float height,
     bool autoLineBreak    = false,
     bool rotateToVertical = false,
     float lineHeight      = DebugPrimitiveRenderer.DefaultLineHeight)
 {
     if (string.IsNullOrEmpty(text))
     {
         return;
     }
     renderer.color = color;
     renderer.AddTextMultiLine(
         text,
         fontSize,
         leftX,
         topY,
         width,
         height,
         autoLineBreak,
         rotateToVertical,
         lineHeight);
 }