Skip to content

Instantly share code, notes, and snippets.

View Myrkie's full-sized avatar

Myrkur Myrkie

  • RTX Corporation
View GitHub Profile
@Myrkie
Myrkie / HierarchyFix.cs
Last active February 7, 2025 10:24
Automatically reorders all humanoid bones to be the first child to make VRChat's IK happy.
// originally by https://github.com/brandonvdongen/PFCTools
using UnityEditor;
using UnityEngine;
using VRC.SDK3.Avatars.Components;
// ReSharper disable once CheckNamespace
public class HierarchyFix : AssetPostprocessor {
private static readonly HumanBodyBones[] Limbs = {
HumanBodyBones.LeftUpperArm,
HumanBodyBones.LeftLowerArm,
@Myrkie
Myrkie / ShowHiddenShaders.cs
Last active January 20, 2025 23:37
Shows hidden shaders in material shader selection
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using UnityEditor;
using UnityEditor.IMGUI.Controls;
using UnityEngine;
using HarmonyLib;
[InitializeOnLoad]
@Myrkie
Myrkie / PatchDeveloperMode.cs
Created December 9, 2024 12:38
Harmony patch to enable developer mode in unity editor requires harmony https://github.com/pardeike/Harmony
using System;
using HarmonyLib;
using UnityEditor;
using UnityEngine;
using System.Collections.Generic;
using System.Reflection.Emit;
[HarmonyPatch]
public static class PatchIsSourceBuild
{