using UnityEditor; using UnityEngine; using System.Collections; public static class Label3D { /* public static void AtWorldPosition(Vector3 position, string text) { var screenPosition = Camera.main.WorldToScreenPoint(position); screenPosition.y = Camera.main.pixelHeight - screenPosition.y; var labelContent = new GUIContent(text); var size = GUI.skin.label.CalcSize(new GUIContent(text)); var labelRect = new Rect(screenPosition.x, screenPosition.y, size.x, size.y); Tools.DrawRectangle(labelRect, new Color(0,0,0,0.5f)); GUI.Label(labelRect, labelContent); }*/ }