-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean-up code + working in Unity 2018.3.0b{x} #36
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much appreciation on taking the time to examine and alter the Zios Themes code; however, our coding conventions are quite a bit different than many of your "cleanup" changes -- namely related to whitespacing. https://docs.google.com/document/d/17nn8QXnsr0hVL8Y5Tja0byp3mNOqi2wnSVz7moz7twA/edit
Additionally, most of the .meta files are required by Unity in order to maintain references in the existing GUISkin files. In an upcoming release, I'll be moving the whole system to a Unity package for cleaner deployment.
Feel free to contact me on Discord (Bradical#2561) for more discussion about design/development!
Ok, I will send you a message later, thanks! If you want to merge it I can revert code conventions to default. Also, it's now working on Unity 2018.3.0b6.
Why you need to create a new window on every EditorApplication update callback, is better to set it though by a MenuItem as I done before. |
Creating the window through a MenuItem would require the user to do so every time to keep the system in sync. Since I use a 1x1 pixel hidden popup type window, it doesn't always persist between Unity restarts (and especially not layout changes/resets).
It should just be a window check that only creates it once. There's a version on the active SVN (which isn't synced to this GIT yet) http://ziosproject.com/Shared/Codebase/@Unity/Editor/Systems/Themes/ that should fix the window creation in newer versions (as well as address some other issues). I wanted to resolve some of the other errors and missing styles and make another major release -- if you are interested in helping out. |
Ok, I just fixed it, I have added a method call Also, I updated |
Any chance this will get released soon? |
Last night I was talking with Brad, and we reach the same point. So, yes, I will upload the latest revision (r617) from SVN repo to Github. Now it's uploaded: #37. Closing. |
Well, I have clean-up code with CodeMaid.
Also, I have fixed the possible problems for Unity 2018.3b (must be reviewed)
Chaging "public static Type GetVariableType(this object current, string name, int index = -1, BindingFlags flags = allFlags)" to this:
Also, you need .NET 4.6 to compile:
BitStreamExtensions class can be removed too. Because it's doing nothing and giving error at compile time.