Unity Tutorial: Editor Extension (Script Creator)
Vložit
- čas přidán 17. 07. 2024
- In this tutorial we're going to build an extension for the editor to make it fast and easy to create child classes or custom inspector scripts.
🎞️ Chapters
00:00 Introduction
00:41 Creating our Editor Core Helpers
03:00 Conditionally showing a menu item
06:45 Setting up our child class creator
10:45 Creating the new file
17:00 Setting up our code templates
24:30 Using the code templates
29:15 Creating custom inspector skeletons
📂 Grab the full project ➠ github.com/GameDevEducation/U...
If you've got questions add a comment below or send them in for the next Q&A video
🤔 Send in your questions ➠ forms.gle/ToyvqPaBFvpFLtNbA
📁 The searchable video archive is at ➠ www.iainmcmanus.dev/gamedev-e...
Looking for other ways to get involved?
🟠 Support the channel on Patreon ➠ / iaintheindie
🟡 Get the code for all the projects on GitHub ➠ github.com/orgs/GameDevEducation
🟢 Check out my games on itch.io ➠ iaintheindie.itch.io/
🟣 Follow me on Twitter ➠ / iaintheindie
🎉 Thankyou to all of the Patrons 🎉
➔ Grant Coble-Neal
➔ John Douglas
➔ Kasper Enwall
➔ Adam Ercanbrack
➔ Tylah Heil
➔ Ian Kehoe
➔ James McCarthy
➔ Kalvin Pearce
➔ Seriphis
➔ Bradley Seymour
➔ SiliconOrchid
➔ Brian Smith
➔ Callan Syratt
➔ Daniel Williams
#Unity #Tutorial #GameDev
Totally didn't need any of that but watched the video from start to finish! Super useful. Thanks for putting it together.
Happy to help :)
This is an excellent tutorial for getting started with script generation. Much appreciated and I look forward to expanding on this!
Thankyou!
Great material. Really enjoyed watching. Thank You
Thankyou! :)
can you make a video on how to do an inspector extension that allows the use of enums as parameters in methods used with the button onclick thing in the inspector or others like it? i cant find anything on how to do this.
It's something I'd love to have but unfortunately it looks to be very tricky. There's a thread here that goes into more detail on it: forum.unity.com/threads/ability-to-add-enum-argument-to-button-functions.270817/
From some of the responses from Unity folks it looks like even they've struggled to try and implement it. And the thread itself is 9 years of discussions about it. I haven't found any existing solutions either for it.
@@IainTheIndie alright, im grateful you saw my comment as well cuz i was trying to find answers everywhere. the thing im wondering now is why the touchscreenkeyboard.Open() with any of the types only ever opens the default keyboard on my android
I'm not too sure on that. If the enum is being converted to/from types at any point that might be going wrong and giving the incorrect result. But if it's still happening even when you pass the enum value in directly as a parameter that sounds like a Unity bug.
@@IainTheIndie no im not using any enums just methods with the textmesh inputfields onSelect thing. i was gonna make it just one method with a dropdown selection for which keyboard i wanna use but nooo unity doesnt wanna make development easier like that
@@IainTheIndie also do you have a discord server? it be a great way for people to ask you for help. i need help debugging pretty much a basic function. if you have a discord server i can just send you a video of what im trying to do