public bool DrawButton(Rect bounds, string content, GUIRenderStyle style) { if (!bounds.Overlaps(ViewInWorld)) { return(false); } return(GUI.Button(WorldToScreen(bounds), content, style.GetStyle(scale))); }
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); }