Skip to content

Instantly share code, notes, and snippets.

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

anatawa12 anatawa12

🏃‍♂️
Too Many Projects
View GitHub Profile
@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
@anatawa12
anatawa12 / CopySerializedPropertyValue.cs
Last active April 3, 2025 03:29
Copy value of a SerializedProperty to another SerializedProperty
// Copyright (c) anatawa12 2022
// Published under CC0 Licesnse or Unlicesnse at your option
// see https://creativecommons.org/publicdomain/zero/1.0/legalcode for CC0
// see https://unlicense.org/ for Unlicense
using System;
using UnityEditor;
using UnityEngine;
using UnityEngine.Assertions;
@anatawa12
anatawa12 / MoveComponentTest.cs
Created February 12, 2023 08:34
A trial to move component without clone. This does not work.
/*
* Move Component Test
* https://gist.github.com/anatawa12/b8799da5d3131e4020f414439a4ea037
*
* A trial to move component without clone. This does not work well
*
* MIT License
*
* Copyright (c) 2023 anatawa12
*
@anatawa12
anatawa12 / AndroidOnlyCheck.cs
Last active April 15, 2023 10:35
A VRCSDKPreprocessAvatarCallback which prevents PC builds.
/*
* AndroidOnlyCheck
* https://gist.github.com/anatawa12/5f847a1692fb30c2c9f00a47d50243ad
*
* A VRCSDKPreprocessAvatarCallback which prevents PC builds.
* In Android build, this script does nothing. In PC build, this script will show dialog & cancel the build.
*
* MIT License
*
* Copyright (c) 2023 anatawa12