How I Made a Level Save/Load Editor Window for my Minigolf Microgame | UI Toolkit Unity Tutorial

Опубликовано: 20 Август 2024
на канале: LlamAcademy
877
63

In this video you'll learn how to create an Editor Window with UI Toolkit by the example of my level save and load window. This includes creating fields with UXML, reviewing the USS styles I used, and some of the core concepts you'll need to bind click events to buttons and draw in the scene view with the Handles API.

👨‍💻 As always, all code from this video is available on GitHub: https://github.com/llamacademy/minigolf

🏷️Save 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?sect...

📚 Resources:
⚫ Play the Game on Itch: https://llamacademy.itch.io/minigolf
⚫ UI Toolkit Documentation: https://docs.unity3d.com/Manual/UIEle...
⚫ SceneView Documentation: https://docs.unity3d.com/ScriptRefere...
⚫ Editor Window Documentation: https://docs.unity3d.com/ScriptRefere...
⚫ USS Reference: https://docs.unity3d.com/Manual/UIE-U...

🧡 Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:
🌟 Patreon:   / llamacademy  
🌟 YouTube Member:    / @llamacademy   or click the Join button on any video
📚 Take my Unity ShaderGraph Course:
https://www.gamedev.tv/p/unity-shader...
👕 Get yourself some LlamAcademy merch: https://llamacademy.myspreadshop.com/
💸 Use my Affiliate Link for Humble Bundles https://www.humblebundle.com/software...
💸 Publisher Sale! 50% OFF an entire publisher's Assets! Publisher changes weekly! https://assetstore.unity.com/publishe... (affiliate)
💸 Save up to 50% on NEW Assets: https://assetstore.unity.com/?new_sal... (affiliate)

Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.

#unitytutorial #tutorialtuesday #gamedev #tutorial #unity #llamacademy #gamedevelopment #opensource

Chapters:
00:00 Topic Introduction
01:48 What We'll Make
02:56 UXML
04:10 Build the Layout with UXML
09:38 The USS
11:04 LevelSaverWindow.cs - the "Controller" for the EditorWindow
15:15 Drawing in the Scene from an Editor Window with Handles
17:25 Closing Thoughts & Support LlamAcademy