How to setup a Toggle in Unity - and how to assign dynamic functionality
Chapters
You will learn how to set a Toggle up on the UI in Unity, how to get values from it by script, how to assign methods to it with code, how to work with toggle groups and how to add a bit of life and style to Toggle buttons.
Squash and Stretch Effect tutorial: https://youtu.be/F_LtpgpTHA8
Looking for toggle switches instead? Find the tutorial here: https://youtu.be/E9AWlbPGi_4
โจ Particle Image Asset: https://assetstore.unity.com/packages/tools/gui/ui-particle-image-235001?aid=1101lr4hF [Affiliate]
โ๏ธ Script on Github
https://github.com/Maraakis/ChristinaCreatesGames/tree/main/Basic%20Toggle%20Functionality
๐ Chapters ๐
๐ 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 https://discord.gg/8pDT2J2TBX !
๐ฎ Play My Games
๐ฒ https://christinacreatesgames.itch.io
๐๏ธ Recommended Assets
https://assetstore.unity.com/lists/highly-recommended-9071944798250?aid=1101lr4hF [affiliate]
๐ List of books all around Gamedev and Design I recommend: https://www.christinacreatesgames.com/bookshelf
Otherwise, using my affiliate codes for these stores helps to support my channel:
๐ Unity Asset Store: https://assetstore.unity.com/?aid=1101lr4hF [affiliate]
๐ช Synty Store: https://syntystore.com/christinacreatesgames [affiliate]
๐ชธ Envato Elements: https://1.envato.market/ChristinaCreatesGames [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/gamedevelopment-consulting/
โ 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
Howto & Style
#Unity UI Toggle
#Unity tutorial
#Learn Unity
#ChristinaCreatesGames
#Game dev
#Game development
#game dev tutorial
#game development tutorial
#UI Design
#unity ui toggle group
#unity ui switch
#unity ui toggle gropu
#unity ui toggle button
#Unity UI Tutorial
#Unity Switch
#Unity Toggle Group
#Unity Toggle Styling
#Unity Radio Button
#unity UI Radio