This tutorial explains how to create two kinds of collapsing sidebars in Unity: A standalone version overlaying a game world and one working inside a greater layout. These are great for menus and show or hide labels based on if your player still requires them. This tutorial uses the Unity UGUI system and while I am using Unity 6, it works well on older versions of Unity, too.
📖 Chapters
00:00 Overview of the results of this tutorial
00:52 Mentioning the TextMesh Pro book
01:13 Scene setup for the standalone collapsing sidebar
09:16 Script for the standalone collapsing sidebar
11:52 Script for switching out Toggle graphics based on state
13:20 Scene setup for the layout system version of the sidebar
16:19 Script for the layout version of the sidebar
17:33 Attaching the script and testing
☕ Find the project files on my Ko-Fi
https://ko-fi.com/s/caeba69e5d
📁 Get my PDF guidebooks on Unity UI
I have a collection of eBooks on the Unity UGUI System here:
📘 Itch: https://christinacreatesgames.itch.io/
☕ Ko-Fi: https://ko-fi.com/christinacreatesgam...
💬 Discord 💛
You are very welcome to join! / discord
🛍️ Recommended Assets
https://assetstore.unity.com/lists/hi... [affiliate]
📖 List of books all around Gamedev and Design I recommend: https://www.christinacreatesgames.com...
Otherwise, using my affiliate codes for these stores helps to support my channel:
🛒 Unity Asset Store: https://assetstore.unity.com/?aid=110... [affiliate]
🏪 Synty Store: https://syntystore.com/christinacreat... [affiliate]
🪸 Envato Elements: https://1.envato.market/ChristinaCrea... [affiliate]
🔖Humble Bundle: https://humblebundleinc.sjv.io/xLGLNR [affiliate]
🌟 Actionable UI Feedback for Your Game
I offer UI consulting for gamedev projects! With 15+ years of design experience and a background of a teacher, I’m here to help:
👉 Learn more: https://www.vennegerts.com/en/gamedev...
☕ Support Me on Ko-fi
If you enjoy the content and want to support my work:
💛 Buy me a cocoa: https://ko-fi.com/christinacreatesgames
#unitytutorial #unity3d #gamedev #indiedev