Skip to content

Instantly share code, notes, and snippets.

View Okay-Roman's full-sized avatar

Roman Okay-Roman

View GitHub Profile
@Okay-Roman
Okay-Roman / RadialFillElement.cs
Last active June 23, 2026 13:03
A radial fill element that can be used in Unity UI Toolkit, makes use of MeshWriteData to create a mesh which will only be visible within the confines of its parent due to the overflow attribute.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UIElements;
namespace NS.RomanLib
{
public class RadialFillElement: VisualElement, INotifyValueChanged<float>
{
protected float m_value = float.NaN;