You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public static class UnityEditorDarkMode
{
// Change below path to the path of the downloaded dll
[DllImport(@"C:\Users\<...>\Desktop\UnityEditorDarkMode.dll", EntryPoint = "DllMain")]
private static extern void _();
[InitializeOnLoadMethod]
private static void __()
{
#if !UNITY_2021_1_OR_NEWER
// [InitializeOnLoadMethod] is getting called before the editor
// main window is created on earlier versions of Unity, so we
// need to wait a bit here before attaching the dll.
System.Threading.Thread.Sleep(100);
#endif
if (EditorGUIUtility.isProSkin)
{
_(); // Attach the dll to the Unity Editor
}
}
}
我使用Auto Dark Theme插件来自动切换主题,希望当使用亮色主题时就不要改变颜色了
The text was updated successfully, but these errors were encountered: