hey all,
i want to display information above some GameObjects. so i calculate their position in screenspace with WorldToScreenPoint() and put a GUI.Label there. My question is now what happens with the Labels wich are not visible (ie outside the screen)? Are they culled automatically or should i take care of a visibility test for myself? or is this even necessarry because the test may take longer than rendering a text?
second question is a bit related. i have read that one should avoid using many GUITextures because of many costly DrawCalls. Does this also apply to GUIText and GUI.Label showing images (and sort of, everything handeled in OnGUI())?
thanks in advance.
Edit: is there a possibility to get the length (size) of a string on the screen in pixels? this would be great to center text.