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 October 24, 2024 06:10
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
{