Skip to content

Instantly share code, notes, and snippets.

View neoRiley's full-sized avatar

John Grden neoRiley

View GitHub Profile
@neoRiley
neoRiley / AspectRatioButton.cs
Last active April 10, 2024 23:08
Extends VisualElement and provides the ability to maintain an aspect ratio as well as add a Label who's font size is scaled with the AspectRatioPanel
using System;
using System.Collections.Generic;
using UniRx;
using UnityEngine;
using UnityEngine.UIElements;
namespace N30R1L37
{
[UnityEngine.Scripting.Preserve]