Last active
October 27, 2021 11:38
-
-
Save tylearymf/f7ef6b55594a72ec0ec5fd34f40c191b to your computer and use it in GitHub Desktop.
访问UnityEditor内部代码
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UnityEditor内部代码有对一系列的指定程序集开放,比如下面的这一行代码 | |
[assembly: InternalsVisibleTo("Unity.InternalAPIEditorBridge.001")] | |
所以只要搞一个上面名字的程序集即可访问内部代码了。 | |
上面代码是在UnityCS源码中Editor的AssemblyInfo.cs中找到的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment