In Unity3D, as well as many other game engines, data can be represented in many ways, but this kind of information is mostly used by programmers. This is the reason we will detail a list of data types and how they are represented in Unity. This will help you communicate in future conversations with fellow programmers.
We will go through the main data types, but there are many others used in Unity:
- Choices: Choices are usually represented by enums in the editor. This gives you the option to choose between a predefined set of options:
- Text: Text is represented with a string in the editor. By clicking on the label and writing something, we will have the opportunity to show that text to the user:
- Numbers: Numbers are represented in many ways in the editor; the most common ones are ints and floats. We will be able to write integers with the...