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: • Create a Squash and Stretch effect in...
Looking for toggle switches instead? Find the tutorial here: • Creating a Toggle Switch System in Un...
✨ Particle Image Asset: https://assetstore.unity.com/packages... [Affiliate]
✍️ Script on Github
https://github.com/Maraakis/Christina...
💬 Discord 💛
You are very welcome to join!
/ discord
🛍️ Store links 🛍️
If you'd like to support my channel, consider using my affiliate link when buying cool stuff in the Unity asset store: https://assetstore.unity.com/?aid=110... [Affilate link]
Or on Humblebundle: https://www.humblebundle.com/?partner... [Affiliate link]
Or in the Synty Store: https://syntystore.com/98327 [Affiliate]
🎮 Play my games on Itch.io 🎮
https://christinacreatesgames.itch.io
📖 Chapters 🔖
00:00 The end result
00:15 Setting up a basic Toggle in Unity
00:49 The Toggle Component
01:35 Getting Values from a Toggle
02:26 Setting the Toggle value by code
03:39 Adding Toggle behaviour through code
04:34 Working with a Toggle Group Component
05:13 Styling 1: Fade and None as transitions
05:44 Styling 2: Sprite Switching
06:06 Styling 3: Adding Squash and Stretch
06:51 Styling 4: Adding Particle Effects with UI Particle Image
Watch video How to setup a Toggle in Unity - and how to assign dynamic functionality online, duration hours minute second in high quality that is uploaded to the channel Christina Creates Games 20 February 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 2,150 times and liked it 72 visitors.