Skip to content

Instantly share code, notes, and snippets.

View CWentz's full-sized avatar

Chad Wentz CWentz

  • Games Academy Student
View GitHub Profile
@Anthelmed
Anthelmed / UIToolkitAutoReferencesPostprocessor.cs
Last active May 12, 2023 19:20
Automatically generate for you a MonoBehavior script containing reference to all the VisualElements that have the "auto-reference" uss class, this is updating every time you add or remove an "auto-reference" uss class inside your UXML file. Code is under the MIT license: https://github.com/git/git-scm.com/blob/main/MIT-LICENSE.txt
#if UNITY_EDITOR
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using UnityEditor;
using UnityEngine.UIElements;
namespace Postprocessors
{
"Match": {
"UUID": "ed3d51dd-a88c-4697-80f3-361fc514d844",
"GameMode": "casual",
"Timestamp": 1476088221,
"Duration": 1706,
"Stats": {
"endGameReason": "victory",
"game_id": "kindred",
//"lobbyInfo": {}, remove blank