Hi, I use unity 4.6 and not found any resources of the GUI legacy. It is deprecated? Should I continue using?
It depends on what you're talking about...OnGUI code isn't legacy and isn't deprecated, and won't go away any time soon if ever since the entire editor GUI is built on it. The old GUIText and GUITexture components still exist, and don't seem to be marked as deprecated, though there's no reason to use them at this point. --Eric
Ok @Eric5h5, I'm trying to attach any text in a gameobject as an over label. Prefab code: Code (CSharp): void OnGUI () { GUI.contentColor = Color.black; Rect label = new Rect (); label.x = worldToRect (transform.position).x; label.y = worldToRect (transform.position).y; label.width = 100; label.height = 100; GUI.Label (label, "test"); } /// Vector2 worldToRect (Vector3 WorldPosition) { Vector2 v = Camera.main.WorldToScreenPoint (WorldPosition); return GUIUtility.ScreenToGUIPoint (v); } //