Example #1
0
 public bool DrawButton(Rect bounds, string content, GUIRenderStyle style)
 {
     if (!bounds.Overlaps(ViewInWorld))
     {
         return(false);
     }
     return(GUI.Button(WorldToScreen(bounds), content, style.GetStyle(scale)));
 }
Example #2
0
 public bool DrawText(Rect bounds, string content, Texture img, string toolTip, GUIRenderStyle style)
 {
     if (!bounds.Overlaps(ViewInWorld))
     {
         return(false);
     }
     GUI.Label(WorldToScreen(bounds), new GUIContent(content, img, toolTip), style.GetStyle(scale));
     return(true);
 }