As we saw in the previous post about the Interval Range attribute, the Property Drawers are powerful tools that help us to modify how we show the fields on the inspector.
Today we are going to present an attribute that allows us to show or hide the fields in certain conditions. Is very useful to minimize the information that we have to see and remove some fields that we don’t need.
Inspector classes are powerful tools but sometimes we need specific functions and more flexibility in order to show our fields in the inspector window. There is when the “Property” and “Decorator Drawers” came in.
Today we are going to show an improved version of the native Unity Range attribute that will allow us to set an interval between the consecutive numbers (for example, if we want a range between 0 and 12 with intervals of 3 in 3). Also, the attribute has the possibility to pass other variables as parameters.
Tests are an important part of the development, and sometimes, a forgotten part. Is tedious write, maintain and remember to launch the tests, and when we realise their utility or want to use them, maybe is too late.
The continuous integration proposes and allows automate some processes in order to find the failures as soon as possible.
In this post, we’ll see how to launch unit tests (called in Unity “Edit Mode Tests”) everytime we make a SourceTree commit. If we the tests are passed, the commit will continue, if not, the commit will aborts.