Skip to content

Instantly share code, notes, and snippets.

View iletai's full-sized avatar
🎯
=))

Tài Lê iletai

🎯
=))
View GitHub Profile
@yasirkula
yasirkula / CircleGraphic.cs
Last active July 10, 2024 08:55
Create circles/ellipses in Unity UI system in one of three modes: FillInside, FillOutside and Edge.
using UnityEngine;
using UnityEngine.UI;
#if UNITY_EDITOR
using UnityEditor;
// Custom Editor to order the variables in the Inspector similar to Image component
[CustomEditor( typeof( CircleGraphic ) ), CanEditMultipleObjects]
public class CircleGraphicEditor : Editor
{