MENU

Fun & Interesting

Making a custom inspector using UI Builder (Easy) | Unity Tutorial

Sasquatch B Studios 23,576 1 year ago
Video Not Working? Fix It Now

Show your Support & Get Exclusive Benefits on Patreon (Including Access to this tutorial Source Files + Code) - https://www.patreon.com/sasquatchbgames Join our Discord Community! - https://discord.com/invite/aHjTSBz3jH -- Editor scripting is FINALLY in a much, much nicer state thanks to UI Toolkit. Creating custom inspectors requires a lot less code and can be done visually now via the UI Builder that UI Toolkit provides. This tutorial will teach you how to build a custom inspector from scratch, with a few key things in mind: 1 - It will be well styled and MUCH prettier than the default inspector 2 - It will have buttons 3 - Certain inspector elements will either be hidden or shown based on a BOOL value. If you've ever wondered about Editor scripting, but been too intimidated with the old IMGui way, then I think you'll really love this video! Hope you guys enjoy, cheers! -- Timestamps: 00:00 - What this video covers 00:47 - Creating the editor script 02:20 - Hooking up UI Builder to our editor script 04:07 - Adding variables into UI Builder 05:06 - Text styling options 05:34 - Adding animated buttons 06:49 - Adding different columns/rows 08:00 - Add functions to buttons 10:00 - Rich text in the editor 10:46 - Hiding variables based on bool 13:38 - Adding Data keys to unbound UIElements -- UI Toolkit sample project (QuizU) https://assetstore.unity.com/packages/essentials/tutorial-projects/quizu-a-ui-toolkit-sample-268492 UI Toolkit E-book https://unity.com/resources/user-interface-design-and-implementation-in-unity?ungated=true UI Toolkit Pseudo-classes https://docs.unity3d.com/Manual/UIE-USS-Selectors-Pseudo-Classes.html Old vs new UI System comparison: https://docs.unity.cn/2022.3/Documentation/Manual/UI-system-compare.html UI Toolkit support rich text tags https://docs.unity3d.com/Manual/UIE-supported-tags.html --- In need of more Unity Assets? Using our affiliate link is a great way to support us. We get a small cut that helps keep us up and running: https://assetstore.unity.com/?aid=1100lwgBQ --- Looking for some awesome Gamedev merch? - https://sasquatchbgames.myspreadshop.com/ Download our free 2D Asset pack: https://assetpack.sasquatchbstudios.com/ --- Who We Are------------------------------------- If you're new to our channel, we're Brandon & Nikki from Sasquatch B Studios. We sold our house to start our game studio, and work full time on building our business and making our game, Veil of Maia. Don't forget to Subscribe for NEW game dev videos every Monday & Thursday! Wishlist Samurado! https://store.steampowered.com/app/2343270/Samurado/ Follow us on Twitter for regular updates! https://twitter.com/SasquatchBGames #unitytutorial #unity2d #unity3d

Comment