Easily create a Toggle Switch system for your UI, which also works with a Toggle Group! A Toggle Switch, also called a Toggle Button works like a checkbox, but has a range of nice visual effects we can work with. Usually, you would use a toggle switch for changes that come into effect immediately, while a normal checkbox would be clicked and then come into effect once the change is being saved. This is not a hard rule, but one I think makes a lot of sense.
✍️ Script on Github
https://github.com/Maraakis/Christina...
📖 Chapters 🔖
00:00 The end result
00:20 Base setup
00:40 The Toggle Switch Core
02:15 Setup automation
03:10 Functionality
06:02 Toggle Group Manager
07:42 Styling toggle switches
📁 Get the PDF Version of my tutorials
Would you rather read a book? I have a collection of eBooks on the Unity UGUI System here:
📘 Itch: https://christinacreatesgames.itch.io/
💬 Join the Discord
You are very welcome to join / discord !
🎮 Play My Games
🎲 https://christinacreatesgames.itch.io
🛍️ 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