unreliablecode / CSharp-Unity-ESP-Framework
Öffentlich
High-performance C# ESP framework for Unity — 3D bounding boxes, 2D collider calculation, Animator skeleton bone tracking, and distance-scaled name tags.
main
1 Sterne
0 Gabeln
0 Beobachter
Aktualisiert 3 days ago
C#
100%
Code
Probleme
Pull-Anfragen 0
Commits
Zweige
Schlagworte
Veröffentlichungen
Suchen
Mitwirkende
Wiki
Einblicke
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using UnityEngine;
using CSharpESP.Drawing;
namespace CSharpESP.Renderers
{
public class Box2DRenderer
{
public enum BoxStyle
{
Full,
Corner
}
public static void Render(Camera camera, Collider collider, Color color, BoxStyle style = BoxStyle.Full, float thickness = 1.5f)
{
if (collider == null) return;
Render(camera, collider.bounds, color, style, thickness);
}
public static void Render(Camera camera, Bounds bounds, Color color, BoxStyle style = BoxStyle.Full, float thickness = 1.5f)
{
if (!MathUtils.GetScreenRectFromBounds(camera, bounds, out Rect screenRect))
{
return;
}
if (style == BoxStyle.Corner)
{
RenderHelper.DrawCornerBox(screenRect, color, 10f, thickness);
}
else
{
RenderHelper.DrawBox(screenRect, color, thickness);
}
}
}
}