This commit is contained in:
2025-05-13 03:19:28 +03:00
parent e2847b060d
commit 762dcf4524
784 changed files with 542617 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
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);
}*/
}