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 [비주얼 스튜디오]
main CSHARP
Box2DRenderer.cs ×
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개 준비가 된
1층, 1열 윤곽: 37 공백: 4 UTF-8 CRLF CSHARP