Skip to content

Instantly share code, notes, and snippets.

@lilxyzw
lilxyzw / lilEditorCapture.cs
Created April 13, 2024 08:48
ドキュメント用にエディタをキャプチャするやつ
/*
MIT License
Copyright (c) 2024 lilxyzw
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@lilxyzw
lilxyzw / UnityVersionFaker.cs
Last active February 27, 2025 06:09
以前は動作していましたがセキュリティチェックの影響で動作せず。CC0で置いておくので必要に応じて編集して使ってください
// This code is licensed under CC0 1.0 Universal.
// https://creativecommons.org/publicdomain/zero/1.0/
#if UNITY_EDITOR && UNITY_2022_3
using HarmonyLib;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using UnityEditor;
using UnityEngine;
using VRC.Core;
@lilxyzw
lilxyzw / mmd_morph_names.txt
Created May 13, 2023 11:36
mmd_morph_names_all.txtは手持ちモーション483個からモーフ使用率を計算したものです。キーフレーム数が2以下、または全てのキーフレームの値が0.01以下のものは扱われていないものとして除外しています。mmd_morph_names.txtは使用率の高いモーフから表記揺れをMMD付属モデルに合わせ、そこから更に厳選したものです。
まばたき
笑い
ウィンク
ウィンク2
ウィンク右
ウィンク2右
はぅ
なごみ
びっくり
じと目
@lilxyzw
lilxyzw / AutoBlendShapeFreezer.cs
Last active May 6, 2023 15:41
BlendShapeGatherer.cs( https://gist.github.com/lilxyzw/d6ac5cc6b1e04dd501c534f0aa6fee95 )がベースです。適当にフォルダ作って2つのファイルを入れれば動くはず。Hierarchyでアバターを右クリックして`AutoFreezeBlendShapes`で自動設定されます。
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the