Skip to content

Instantly share code, notes, and snippets.

View tylearymf's full-sized avatar
:octocat:

tylearymf tylearymf

:octocat:
  • China
View GitHub Profile
@tylearymf
tylearymf / gist:a39fd7e0b5f5c39d0ef29c2683d69a75
Created April 15, 2022 13:33
Unity Mesh bindPoses 详细说明
/**
* bindPoses 详细说明
* 转自 https://forum.unity.com/threads/some-explanations-on-bindposes.86185/
*
* 翻译如下:
* bindPose 矩阵是允许将网格的原始顶点(在局部空间下)转换到世界空间
* 然后到每个骨骼的局部空间,之后每隔骨骼的动画可以应用到有问题的顶点(受权重值影响)。
*
* 网格的 bindPose 将顶点从局部空间转换到世界空间,
* 然后每个骨骼的 bindPose的逆变换矩阵 将网格顶点从世界空间转换到骨骼的局部空间,
@tylearymf
tylearymf / gist:3adc2aea0fc61d8eee3b5b8235c0153f
Last active November 21, 2022 03:35
修改ConsoleE为激活版本
bm.cs -> b(ref bool A_0) : Activation界面的GUI绘制方法
修改1:
ILSpy导出的是 a.cs -> r() :激活状态,强制改成 return true 即可(IDA修改)
dnSpy导出的是 a.2.cs -> r() : 激活状态,强制改成 return true 即可(IDA修改)
IDA中搜索函数:ConsoleE.a__r
二进制修改:
源版本: "02 7B" 5F 00 00 04 2D 0F 02 28 90 00 00 06 28 69 00 00 0A
修改版本: "17 2A" 5F 00 00 04 2D 0F 02 28 90 00 00 06 28 69 00 00 0A
https://download.typora.io/windows/typora-setup-x64-0.11.18.exe
1、注册表查找 Typora 项
HKEY_USERS\S-1-5-21-1825356615-3202356483-1748601478-1001\Software\Typora
2、修改 IDate 值为当前时间即可,不能修改为 超过当前时间,会被重置
@tylearymf
tylearymf / SolutionExplorer
Created November 23, 2022 09:38
SolutionExplorer
using UnityEditor;
using System.Text.RegularExpressions;
public class SolutionExplorer : AssetPostprocessor
{
public static string OnGeneratedSlnSolution(string path, string content)
{
return Regex.Replace(content, @"Project.*?=\s""(?<name>.*?)"".*?EndProject", match =>
{
var name = match.Groups["name"].Value;