Property Attributes - Part 3 | Unity Editor Scripting
Otter Knight
This is the final of three videos about property attributes. It can be watched on its own, but if you don't feel somewhat confident on the topic, you should go check out the two first videos first. The first video can be found here: https://odysee.com/@OtterKnight/UES-property-attributes-2
In this episode, we'll have a look at how property attributes work on arrays. Specifically, we'll make an attribute that forces an array to match a given enum in the inspector in terms of length and names. This in turn makes for smoother development down the line. Through this process we will learn about some of the strengths and weaknesses of working with property attributes on arrays, and we'll also learn a few tricks for how to get around some of the problems. Enjoy!
When you get more advanced at Unity and want development to be both faster and smoother, it’s time to look into Editor Scripting. Learning about concepts like attributes, property drawers, custom editor windows, custom inspectors, and scripts running in the editor, can open a whole new world in game development. Learning about these topics can seem daunting and like it requires you to already have a good understanding of many other advanced concepts. This series will take you from being a beginner at editor scripting to having the ability to create your own level editors.
Unity Manual Page: https://docs.unity3d.com/Manual/edito...
····················································································
Timestamps: 0:00 Introduction 0:34 Problem 3:18 Property Attribute 4:13 Property Drawer 13:36 Outro
····················································································
Discord Server: https://discord.gg/NsCvyHYWwq Twitter: https://twitter.com/otter_knight
····················································································
End music: Track: JJD - Adventure [NCS Release] Music provided by NoCopyrightSounds. Watch: https://www.youtube.com/watch?v=f2xGx... Free Download / Stream: http://ncs.io/adventure
138630517 Bytes