UI Toolkit Tutorial - Custom Components - Switch

Published: 27 June 2025
on channel: Bunny Coding
2,113
75

This is the third video in the series. I will be showing you how to create a custom component in UI Toolkit using a basic switch component as the example.

Discord -   / discord  
Patreon -   / bunnycodingdev  
Ko-Fi - https://ko-fi.com/bunnycodingdev

I will be covering in the series :
Basic use of the UI Builder
How to effectively style your UI
Setting up a project to use multiple menus
Creating custom controls
Using both the Scroll View and the List View

Link to assets used :
Orbitron Font - https://www.theleagueofmoveabletype.c...
Bootstrap Icons - https://icons.getbootstrap.com/#install
https://github.com/twbs/icons/releases/

Other useful links :
UI Toolkit Psudo classes - https://docs.unity3d.com/2020.1/Docum...

00:00 Intro
00:28 Setting up scripts
01:32 Creating the Visual Element
06:04 Initialising the child objects
09:47 Adding styling
18:53 Adding functionality
26:14 Registering mouse clicks
27:53 Updating setting screen


On this page of the site you can watch the video online UI Toolkit Tutorial - Custom Components - Switch with a duration of hours minute second in good quality, which was uploaded by the user Bunny Coding 27 June 2025, share the link with friends and acquaintances, this video has already been watched 2,113 times on youtube and it was liked by 75 viewers. Enjoy your viewing!