Back to Browse

Unity Tutorial: Using Attributes

428 views
May 16, 2024
32:35

In this tutorial we are going to be taking a deeper look at useful C# attributes in Unity to make our lives easier. For a full list of Unity specific attributes check out: https://docs.unity3d.com/Manual/Attributes.html General ones begin here: https://docs.unity3d.com/ScriptReference/AddComponentMenu.html Editor only ones begin here: https://docs.unity3d.com/ScriptReference/CallbackOrderAttribute.html 🎞️ Chapters 00:00 Introduction 02:00 Component dependencies 04:00 Extending the Add Component menu 05:30 Preventing duplicate components 07:30 Customising colour inspector UI 10:10 Adding tooltips 12:10 Adding header labels and spacing to the UI 13:10 Adding range limits 14:40 Adding context menus to the inspector UI 17:40 Modifying the display name of enum values 20:10 Setting up Text Areas 22:50 Controlling serialization and visibility 📂 Grab the full project ➠ https://github.com/GameDevEducation/UnityTutorial_Attributes If you've got questions add a comment below or send them in for the next Q&A video 🤔 Send in your questions ➠ https://forms.gle/ToyvqPaBFvpFLtNbA 📁 The searchable video archive is at ➠ https://www.iainmcmanus.dev/gamedev-education/ Looking for other ways to get involved? 🟠 Support the channel on Patreon ➠ https://www.patreon.com/IainTheIndie 🟡 Get the code for all the projects on GitHub ➠ https://github.com/orgs/GameDevEducation 🟢 Check out my games on itch.io ➠ http://iaintheindie.itch.io/ 🟣 Follow me on Twitter ➠ https://twitter.com/IainTheIndie 🎉 Thankyou to all of the Patrons 🎉 ➔ Arman ➔ Kieran B ➔ Grant Coble-Neal ➔ John Kenneth Douglas ➔ Kasper Enwall ➔ Tylah Heil ➔ James McCarthy ➔ Travis Mosier ➔ Sam Orme ➔ Benjamin Russell ➔ Seriphis ➔ SiliconOrchid ➔ Callan Syratt ➔ Serj Tomas #Unity #Tutorial #GameDev

Download

0 formats

No download links available.

Unity Tutorial: Using Attributes | NatokHD