Attributes are tags that can be added above a class or field. In Unity they change how your script appears in the Inspector without changing what the code does. Typically, I will use these as a
quality of life improvement that makes it easier to use the Unity Inspectors and setup Game Objects.
Here is a small MonoBehaviour that gives an example using four of them:
| |