May 4, 2020 C# Unity Introduction If you’ve used Unity, you’ve likely done something like this in your code: public class MyClass : MonoBehaviour { [Range(0,10)] public int Test; } Specifically, you’ve put that [Range] thing above an int or float field in your class and, like magic, enjoyed that fact that in the inspector you now have a slider to set Test’s value instead of needing to enter its value in a text field: [Range] in the above code is an Attribute, a way of associating metadata...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile