Precompiler

From PowerUI
Jump to: navigation, search

The precompiler built into PowerUI takes all of the C# source that makes PowerUI and compiles it into a DLL. This can have a nice impact on development time, as Unity will no longer be compiling everything whenever you change your code.

To use it, go to Window > PowerUI > Precompile.

Safe use of the precompiler

If you do use the precompiler, there are a few things you must keep in mind:

  • Just leave Editor Mode unchecked unless it becomes a problem. It almost never matters - only a few PowerUI editor windows, such as Nitro settings, will throw an exception if you try to use them with Editor Mode unchecked.
  • When changing platforms it's best to turn it off (by unchecking "Precompile PowerUI"), change platform, then turn it back on again. This avoids Unity failing to import the compiled DLL because it's using APIs for some other platform.

Custom content (such as tags)

You can continue to leave custom content outside of the PowerUI source tree - it will continue to work correctly. However though, any extensions which use partial classes must be included with PowerUI.