Files
CityDrivingSimulator.Unity/Unity/Assets/Scripts/Debug/Label3D.cs
T
2025-05-13 03:19:28 +03:00

18 lines
639 B
C#

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);
}*/
}