High-performance C# ESP framework for Unity — 3D bounding boxes, 2D collider calculation, Animator skeleton bone tracking, and distance-scaled name tags.
main 1 Зоркі 0 Відэльцы 0 Назіральнікі Абноўлены 3 days ago
C# 100%
Усе дзеянні
Толькі выпускі
Ігнараваць
unreliablecode / CSharp-Unity-ESP-Framework src/Renderers/Box2DRenderer.cs [Visual Studio]
main CSHARP
CSharp-Unity-ESP-Framework / src / Renderers / Box2DRenderer.cs
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);
            }
        }
    }
}
main 0 памылак Гатовы
Ln 1, Col 1 Радкі: 37 Прабелаў: 4 UTF-8 CRLF CSHARP