Unity Packages

So I was inspired to actually go deeper in Unity by their announcement that they were making Unity Learn Premium free – from March to June 2020.

As I started watching and learning from Unity experts, I realized one of the big gaps I hadn’t even known about was that Unity had a package management system.

I checked my editor and for some reason I was missing packages entirely.

I did some digging, and it turns out in my infinite wisdom that I had installed one of the Long Term Support packages that Unity offered … in 2017.

It turns out that the build was published before they had invented this, and the LTS clients don’t inform you about updates by their very design.

So, after upgrading to the bleeding edge Unity (and they update monthly) I started experimenting, and I highly recommend:

Memory Profiler.
TextMesh Pro.
2d Animation.

I know this sounds trivial, but I spent more than a few hours puzzling this one out!

Anchors and Pivots

Upon first working with the anchors and pivots system in unity I got confused, things didn’t end up where I wanted them, and I didn’t understand what the UI was trying to tell me.

I made a simplified example to show some things that I didn’t immediately catch onto.

Anchors allow you to not only define how the UI change as screens resize (and this is super important), but they also change the relative position of the element from its anchor, and that’s how its position is defined.

In the pictures above the only thing I changed was the Rect Transform’s anchors (click the square picture that demonstrates its current position and you can select this, this was not obvious to me at all.

Also this may not be obvious to you yet, but nested objects automatically scale and transform based on the parent, so nesting panels is the way to go (similar to nested divs/spans in a web context.)