Skip to content

Instantly share code, notes, and snippets.

View anatawa12's full-sized avatar
🏃‍♂️
Working on Many Projects

anatawa12 anatawa12

🏃‍♂️
Working on Many Projects
View GitHub Profile
@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
@anatawa12
anatawa12 / AlignZAxisOnPlaneWithYRotation.cs
Last active August 14, 2023 12:06
Align X axis of multiple GameObjects onto plane of the gameobjects. This is made to align rotation of skirt bone
/*
* AlignXAxisOnPlaneWithYRotation
* Align X axis of multiple GameObjects onto plane of the gameobjects. This is made to align rotation of skirt bone
* https://gist.github.com/anatawa12/4733d6e695df5dd5a08c599189bba589
*
* Click `Tools/anatawa12 gists/AlignXAxisOnPlaneWithYRotation` to open this window.
*
* MIT License
*
* Copyright (c) 2023 anatawa12
@anatawa12
anatawa12 / ForceRecompilation.cs
Created August 14, 2023 12:02
Force Compilation Unity
using UnityEditor;
using UnityEditor.Compilation;
internal class ForceRecompilation
{
[MenuItem("Tools/Force Compilation")]
static void DoForceRecompilation()
{
CompilationPipeline.RequestScriptCompilation();
EditorUtility.DisplayDialog("Force Compilation", "Compilation Requested!", "OK");
/*
* ObjectFullDebugInspector
* Debug inspector with full
* https://gist.github.com/anatawa12/8af588d3fc832910d5675566303002b5
*
* Tools/anatawa12 gists/ObjectFullDebugInspector to open the window
*
* MIT License
*
* Copyright (c) 2023 anatawa12
@anatawa12
anatawa12 / SetDirtyRecursively.cs
Last active July 11, 2023 03:04
Set dirty all components on selected GameObject to avoid reference to prefab asset.
/*
* SetDirtyRecursively
* Set dirty all components on selected GameObject to avoid reference to prefab asset.
* https://gist.github.com/anatawa12/ecf33339c315f259cee62b304910fe43
*
* Left click object and select `SetDirty Recursively`
*
* MIT License
*
* Copyright (c) 2023 anatawa12
@anatawa12
anatawa12 / RemovePropertiesFromAnimations.cs
Created July 10, 2023 08:22
A window to remove some property from multiple animations
/*
* RemovePropertiesFromAnimations
* A window to remove some property from multiple animations
* https://gist.github.com/anatawa12/930c08c724af17197a401bcfd580985b
*
* Open Tools/antawa12 gists/Remove Properties from Animations and set animations to modify,
* select properties to remove, and click remove!
* If you want to copy instead of in-place modification, check 'Copy instead of in-place' and
* select folder.
*