Unity : Cinemachine and Timeline (Part VI)

NOTE : I take here a bit of time to talk about enum.

If we pass the mouse over Away, Medium and Close, we see that every variable correspond to a number.
Enum follow the basics of numeration the collections, so the first is 0, second is 1, and so on.

With this we can do something incredible powerful with enum : we can CAST THEM AS INTEGER.

For example, we have three variables to define the distance of Field of View.
With them, we can do this



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Matteo Lo Piccolo

Matteo Lo Piccolo


Always in love with programming, even if late (I'm already 39 years old) I decided to follow my dream! We will see how far my passion will take me!