Skip to content

Instantly share code, notes, and snippets.

View anatawa12's full-sized avatar

anatawa12 anatawa12

View GitHub Profile
@anatawa12
anatawa12 / CombineAssetsToSingleFile.cs
Last active June 2, 2024 14:20
Combines multiple assets into a single file.
/*
* Combine Assets To Single File
* https://gist.github.com/anatawa12/1b304b398945ec547912239328708b6b
*
* Combines multiple assets into a single file.
* Select Multiple Files and Right Click -> Assets -> Combine Assets To Single File
*
* MIT License
*
* Copyright (c) 2023 anatawa12
@anatawa12
anatawa12 / ManualBakePreprocessAvatarCallbacks.cs
Created June 2, 2024 12:32
Manual Bake Preprocess Avatar Callbacks
/*
* Manual Bake Preprocess Avatar Callbacks
* Calls IVRCSDKPreprocessAvatarCallback.OnPreprocessAvatar on selected Avatar
* https://gist.github.com/anatawa12/9e2bf687b1dbc23c78d513bfa96f07d8
*
* Left-click on an Avatar in the Hierarchy and select "Manual Bake Preprocess Avatar Callbacks" from the context menu.
*
* MIT License
*
* Copyright (c) 2023 anatawa12
@anatawa12
anatawa12 / ExportTextureAsPNG.cs
Last active June 1, 2024 08:50
Save existing texture asset as PNG
/*
* Export Texture as PNG
* Save existing texture asset as PNG
* https://gist.github.com/anatawa12/TODO
*
* Open `Tools/anatawa12 gists/MultiGizmo` and select objects to show gizmo
*
* MIT License
*
* Copyright (c) 2023 anatawa12
#if UNITY_EDITOR && (!ANATAWA12_GISTS_VPM_PACKAGE || GIST_a4bb4e2e5d75b4fa5ba42e236aae564d)
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Text;
using HarmonyLib;
using JetBrains.Annotations;
using UnityEditor;
using UnityEditorInternal;
@anatawa12
anatawa12 / ShowAssetsInPackagesByDefaultInSelector.cs
Created January 5, 2024 13:33
Show Assets in Packages by Default in Selector Window
/*
* Show Assets in Packages by Default in Selector Window
* https://gist.github.com/anatawa12/b128ca8fc819b9684f3ed15be1f76e8c
*
* Copy this cs file to anywhere in your asset folder is the only step to install this tool.
*
* In Unity, the selector window will not show assets in packages by default.
* This tool will change the default behavior to show assets in packages by default.
*
* MIT License
@anatawa12
anatawa12 / SetEmptyAnimationToNone.cs
Created December 10, 2023 13:57
SetEmptyAnimationToNone
/*
* SetEmptyAnimationToNone
* TODO: Description
* https://gist.github.com/anatawa12/2a6e0a3607e35d57a4b0ff54fa437c14
*
* Click `Tools/anatawa12 gists/SetEmptyAnimationToNone` to open this window.
*
* MIT License
*
* Copyright (c) 2023 anatawa12
@anatawa12
anatawa12 / FindAllAnimatedProperties.cs
Created October 17, 2023 12:08
FindAllAnimatedProperties
/*
* FindAllAnimatedProperties
* TODO: Description
* https://gist.github.com/anatawa12/TODO
*
* Click `Tools/anatawa12 gists/FindAllAnimatedProperties` to open this window.
*
* MIT License
*
* Copyright (c) 2023 anatawa12
@anatawa12
anatawa12 / PrefabFileIdRestore.cs
Created August 27, 2023 16:15
Tool to match fileIDs of one prefab to another prefab. this is used when upgrading original avatar.
/*
* PrefabFileIdRestore
* Tool to match fileIDs of one prefab to another prefab. this is used when upgrading original avatar.
* https://gist.github.com/anatawa12/43d2ae5cade96018a6e96e8557cd05f9
*
* Click `Tools/anatawa12 gists/PrefabFileIdRestore` to open this window.
*
* MIT License
*
* Copyright (c) 2023 anatawa12
@anatawa12
anatawa12 / CreateIdleAnimation.cs
Created August 18, 2023 08:20
Creates Idle face animation from SkinnedMeshRenderer
/*
* CreateIdleAnimation
* Creates Idle face animation from SkinnedMeshRenderer
* https://gist.github.com/anatawa12/667a1b7a892f121a7572bdec325442ea
*
* Click `Tools/anatawa12 gists/FindPhysBoneAffectedTransforms` to open this window.
*
* MIT License
*
* Copyright (c) 2023 anatawa12
@anatawa12
anatawa12 / MultiGizmo.cs
Last active May 20, 2024 16:25
Tool to show position gizmo of multiple objects
/*
* MultiGizmo
* Tool to show position gizmo of multiple objects
* https://gist.github.com/anatawa12/6af2d5e41b0941aee1ed3fd7e0860ac0
*
* Open `Tools/anatawa12 gists/MultiGizmo` and select objects to show gizmo
*
* MIT License
*
* Copyright (c) 2023 anatawa12