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 / UnityWindowGistTemplate.cs
Last active August 14, 2023 12:07
Template gist for unity window
/*
* #SCRIPTNAME#
* TODO: Description
* https://gist.github.com/anatawa12/TODO
*
* Click `Tools/anatawa12 gists/#SCRIPTNAME#` to open this window.
*
* MIT License
*
* Copyright (c) 2023 anatawa12
@anatawa12
anatawa12 / FindReferenceChainRecursive.cs
Created July 7, 2023 02:39
Tool to find unexpected references
/*
* FindReferenceChainRecursive
* Tool to find unexpected references
* https://gist.github.com/anatawa12/ae5f7b3c5e07150ddc1eb9f0948019ff
*
* Open Tools/anatawa12 gists/Find Reference Chain Recursive and drop your root object to find references.
*
* MIT License
*
* Copyright (c) 2023 anatawa12
@anatawa12
anatawa12 / SelectSkinnedMeshBones.cs
Last active May 25, 2023 09:24
Select GameObjects used by SkinnedMeshRenderers
/*
* Select GameObjects used by SkinnedMeshRenderers
* https://gist.github.com/anatawa12/94d6fd4272025fd26962476100a20ff0
*
* Delete EditorOnly On Play before Avatar Optimizer or Modular Avatar.
* Add this component to any gameobject in your scene
*
* MIT License
*
* Copyright (c) 2023 anatawa12
@anatawa12
anatawa12 / DeleteEditorOnlyOnPlay.cs
Created May 25, 2023 07:44
Delete EditorOnly On Play before Avatar Optimizer or Modular Avatar
/*
* Delete EditorOnly On Play before Avatar Optimizer or Modular Avatar
* https://gist.github.com/anatawa12/cdc0e5b1f0243c93d3567bbfd808880e
*
* Delete EditorOnly On Play before Avatar Optimizer or Modular Avatar.
* Add this component to any gameobject in your scene
*
* MIT License
*
* Copyright (c) 2023 anatawa12
@anatawa12
anatawa12 / EditorScreenshotTakeTool.cs
Last active May 25, 2023 09:22
A tool to take screen shot of an Editor.
/*
* EditorScreenshotTakeTool
* https://gist.github.com/anatawa12/875d0776305b771ba7ee74c656f082f6
*
* A tool to take screen shot of an Editor.
*
* MIT License
*
* Copyright (c) 2023 anatawa12
*
@anatawa12
anatawa12 / fast-switch-between-quest-build-and-win-build.md
Created April 16, 2023 09:31
Fast switch between Quest build and PC build

Fast switch between Quest build and PC build

The shellscript I use for my Avatar project to switch Quest build and PC build quickly

Tested on macOS but should work on linux or git bash on windows.

Installation

  1. Copy two shell scripts to your project folder
  2. Move current Library folder to Library.pc or Library.quest based on current build target.
@anatawa12
anatawa12 / HumanoidInfoWindow.cs
Last active April 15, 2023 09:18
Window to see actual humanoid binding
/*
* Humanoid Info Window
* https://gist.github.com/anatawa12/8375f82dbc751086a32fcd2c626fa09b
*
* Open Tools/anatawa12 gists/ShowHumanoidInfo and drop your animator
*
* MIT License
*
* Copyright (c) 2023 anatawa12
*
@anatawa12
anatawa12 / ping.sh
Created March 29, 2023 13:30
ping.sh
#!/bin/sh
PINGOPTIONS=
case "$(uname --kernel-name)" in
*cygwin*|*CYGWIN*|*mingw*|*MINGW*|*msys*|*MSYS*)
PINGOPTIONS="$PINGOPTIONS -t -w 1000"
;;
esac
@anatawa12
anatawa12 / CompilationLogWindow.cs
Last active March 22, 2023 17:46
The window to see compilation progress
/*
* CompilationLogWindow
* https://gist.github.com/anatawa12/5987f6b5357c3c91603fa07f215dfeab
*
* The window to see compilation progress
*
* Copy this cs file to anywhere in your asset folder is the only step to install this tool.
*
* MIT License
*
@anatawa12
anatawa12 / MergeAnimationClip.cs
Last active March 22, 2023 13:06
Micro tool to multiple animation clip into one.
/*
* Merge Animation Clip
* https://gist.github.com/anatawa12/f7476d2d727bc43d86121f6a3337d2c3
*
* Micro tool to multiple animation clip into one.
* Click `Tools/anatawa12 gists/Merge Animation Clip` to open the merge window.
*
* MIT License
*
* Copyright (c) 2023 anatawa12