Skip to content

Instantly share code, notes, and snippets.

View alisci01's full-sized avatar

alisci01

View GitHub Profile
@alisci01
alisci01 / ProjectPrefs.cs
Created June 24, 2023 02:36
API to save editor preferences per-project. Uses LitJSON.
using System;
using System.IO;
using UnityEngine;
using LitJson;
namespace TGS.Editor
{
/// <summary>
/// API to save per-project editor preferences. By all accounts the exact same API as EditorPrefs.
/// </summary>
@alisci01
alisci01 / ParameterUpdateLogger.cs
Created July 29, 2022 18:43
Debugging script to help identify state machine transitions and updated parameters for Unity animators
using UnityEngine;
public class ParameterUpdateLogger : StateMachineBehaviour
{
[SerializeField]
string stateName = "RENAME ME!";
AnimatorControllerParameter[] animatorParams;
object[] animatorParamValues;