Game Development Reference
In-Depth Information
The order number is a definition of priority: the higher the number, the lower the priority.
By default, all scripts have a priority of 1. Scripts with lower numbers are executed first
(even negative numbers such as -10 are allowed for ultimate priority), whereas scripts
with higher numbers are executed last.
This is especially useful if you want to have several actions execute on a successful build
and want to control the order in which they are executed.
Note
You can also copy code files directly to the target solution, if you wish, from your Unity
project. If you do not want those files to be read or executed by Unity, then simply suffix
them with .ignore , and Unity will ignore them. Just remember to rename them when
copying them to a platform.
For example:
MyPlatformClassFile.cs.ignore
For more information about build processing, see the Unity scripting reference guide at
http://docs.unity3d.com/412/Documentation/ScriptReference/PostProcessBuildAttrib-
ute.html .
Tip
For a very full-featured example of highly customized build processing, check out the
AdRotator Unity plugin, which is open source, on GitHub at:
https://github.com/Adrotator/AdrotatorV2/tree/master/AdRotatorUnityPackage
Just check in the AdRotatorUn-
itySDK.Assets\Editor\AdRotatorPostBuild.cs script.
Search WWH ::




Custom Search