Game Development Reference
In-Depth Information
Getting access to the source
In a bold move, Unity released almost all the source code for the new Unity UI
system as an open source project via Bitbucket.org . This isn't the first time they
have made things public; back in October 2014, Unity released their Unit Test
Tools and a bunch of examples on their new public account (check them all out at
https://Bitbucket.org/Unity-Technologies ) .
Note: This section assumes you have either Visual Studio
(2012+ express/community, pro, or ultimate), MonoDevelop, or
Xamarin Studio installed to build and edit code. By default, you
should already have MonoDevelop installed when you installed Unity.
You can browse the code all you like on the website, but to build/use it
on your machine you will need a code editor and code build engine.
This is however, the first time they have released a core part of the Unity Engine
for all to see (there have been a few other side projects but this is the biggest so
far), to break it apart and even replace it in your own installs. Not only that, they
are welcoming developers to review their code and suggest fixes/updates (within
one week there were already 74 copies/forks of the new UI system); the world has
become a very interesting place indeed.
Granted not everything is in there, the Canvas for example is a core engine
component with specific rendering code so that isn't exposed, however, almost
everything else is there to tinker with.
In this section, we'll walk over the repository itself (if you are not yet familiar with
it), how you get access to the code, make changes, and even submit your suggestions.
Note: If you do find a bug and are unsure how to resolve it, then you
should still use the Unity Bug Tracker built into Unity ( Help | Report
a bug ) or pop along to the Unity UI forum located at http://forum.
unity3d.com/forums/unity-ui.60 .
The repository
As the code repository is completely open to the public, getting access to it is very
simple. Just navigate to https://Bitbucket.org/Unity-Technologies/ui and
you will see the following page:
 
Search WWH ::




Custom Search