Slider Events - Change things with sliders - Unity 4.6 Tutorial

  Рет қаралды 199,869

Brackeys

Brackeys

Күн бұрын

Пікірлер: 157
@garcesdesign
@garcesdesign 10 жыл бұрын
Thank you, thank you, thank you! All examples for the UGUI slider focus on the audio component but I needed an example like yours. Thanks again!
@acoolpenny3947
@acoolpenny3947 10 жыл бұрын
i just want to say thank you brackys for all of your tutorials unlike most people who sat this works. you tell us why it works and because of you i have started down the long road of developement and want to go to college to be a game developer. and have started two games a 3D and a 2D game. Thanks man you truely are the best.
@danipremise9380
@danipremise9380 10 жыл бұрын
Thanks brackeys i was searching for how to create dynamic variables for the 4.6, your the first ive come across to explain just that so thanks again
@ADV_UA
@ADV_UA 5 жыл бұрын
I'm from the future. You have incredibly improved your English.
@RyanGaming21
@RyanGaming21 5 жыл бұрын
ya
@MrTHotz
@MrTHotz 10 жыл бұрын
Will you be covering how to use sliders to change graphics settings in-game such graphics options or brightness?
@kenyxg4
@kenyxg4 10 жыл бұрын
Yes!
@MadDogGaming
@MadDogGaming 9 жыл бұрын
Lowest: QualitySettings.currentLevel = QualityLevel.Fastest; Highest: QualitySettings.currentLevel = QualityLevel.Fantastic; This might be useful to: docs.unity3d.com/ScriptReference/QualitySettings.html
@MadDogGaming
@MadDogGaming 9 жыл бұрын
You could have a range from 0.0 to 1.0 that sets the quality level by sections where the value of the slider is. For every 16.6% you could go up one quality level.
@chickentail7108
@chickentail7108 4 жыл бұрын
Mad Dog thanks
@lmoa69
@lmoa69 8 жыл бұрын
"And that's super fun!" :)
@thereal_balak
@thereal_balak 10 жыл бұрын
Thanks so much Asbjørn, your tutorials are great and i'm enjoying them (all of them) :D They have really helped me out in Unity for over the past months now, and i'm working on a game atm :D (3D Survival Game). Thanks again! :D
@Brackeys
@Brackeys 10 жыл бұрын
I'm glad I can help :D
@P3rvenc
@P3rvenc 3 жыл бұрын
6 years lates, still usefull :D
@MrAhoyGaming
@MrAhoyGaming 10 жыл бұрын
More C# tutorials please
@Brackeys
@Brackeys 10 жыл бұрын
Working on one right now :)
@HelplessProcrastinatorChannel
@HelplessProcrastinatorChannel 9 жыл бұрын
I used to put a script on the camera and do something like: using UnityEngine; using UnityEngine.UI; // To be able to use UI elements using System.Collections; public class GUI : MonoBehaviour { public Button playGame; void Start() { // Considering our game scene is 0 playGame.onClick.AddListener( () => { Application.LoadLevel(1); }); } } the point is ... when you have multiple buttons, and multiple scenes using buttons, and boom ! this get's pretty boring! Thank you Brackeys for saving me.
@ASADKHAN-ng1js
@ASADKHAN-ng1js 6 жыл бұрын
Thank you soooooo much whenever I look some script I visit ur channel first
@louiseegan5001
@louiseegan5001 9 жыл бұрын
You have saved my life. Thank you xx
@scotthoffman8317
@scotthoffman8317 8 жыл бұрын
Simple and to the point. Thanks for the tutorial!
@achillachill
@achillachill 9 жыл бұрын
The best Teatcher on KZbin !
@damcorn9122
@damcorn9122 8 жыл бұрын
awesome, time saver tutorial :) thanks man my GUI design sucked.....UI ROCKS !
@not_herobrine3752
@not_herobrine3752 4 жыл бұрын
Well then, this video was bloody excellent
@studioRafaGames
@studioRafaGames 3 жыл бұрын
Thank you, that video was very instructive and go right to the point.
@johndough7479
@johndough7479 6 жыл бұрын
Love that purple! thanks!
@rosslahive
@rosslahive 2 жыл бұрын
Thanks helped a lot.
@foxfirefive
@foxfirefive 3 жыл бұрын
thanks this helped a lot! i used this for moving a camera left & right and it worked. it worked. thats it. im not that good at coding so yeah it just, worked somehow
@ThrobinRobin
@ThrobinRobin 10 жыл бұрын
YES another one! Cant wait to see more
@Brackeys
@Brackeys 10 жыл бұрын
Me neither, gonna have to make some videos for the other courses too though :)
@geomorillo
@geomorillo 7 жыл бұрын
really great this simplified things
@mostafahashem8611
@mostafahashem8611 5 жыл бұрын
thanks alot this video helped me to finish my task
@Starius2
@Starius2 10 жыл бұрын
I fucking LOVE sliders!!!
@Brackeys
@Brackeys 10 жыл бұрын
Me too :)
@Starius2
@Starius2 10 жыл бұрын
Brackeys fuck ya!!!!!!
@FE4RKING
@FE4RKING 10 жыл бұрын
Nice tutorial mate thank you very much!
@blind_neighbourhoodNerd
@blind_neighbourhoodNerd 8 жыл бұрын
your tutorials are amazing man!! Thanks so much
@nevobl1291
@nevobl1291 10 жыл бұрын
Nice video! Will you do more programming in C# videos? Please do more! :)
@Sin2q
@Sin2q 5 жыл бұрын
this was a huge help! THANK YOU
@collectpedals
@collectpedals 10 жыл бұрын
a tutorial ive been waiting for awhile is a mmo server setup tutorial, like with photon would be cool :)
@dampiir8910
@dampiir8910 6 жыл бұрын
Hi Brackeys thanks for all your great vids! Any chance you could show us how to use sliders to adjust the volume levels of audio mixers? It's the most obvious use for them but nobody seems to know how to do it and I can't find any info on it!
@georgeoutters5657
@georgeoutters5657 5 жыл бұрын
Love your videos!!!!
@china3242
@china3242 7 жыл бұрын
Thank you very much.You are unique.
@Michael_H_Nielsen
@Michael_H_Nielsen 9 жыл бұрын
do you have a tutorial to creating the fireball on your thumbnail?
@wxoxozy
@wxoxozy 10 жыл бұрын
Can you do a tutorial similar to this but changing the quality? Also, could you do a tutorial on importing custom images for GUI.
@HighPalace123
@HighPalace123 3 жыл бұрын
man, i love you.
@RobertGercia
@RobertGercia 4 жыл бұрын
Taking a peek in 2020:D
@CarbonDev
@CarbonDev 3 жыл бұрын
Nostalgia
@nicolasnony2204
@nicolasnony2204 8 жыл бұрын
thanks, your tuts are really simple and usefull !
@kyle-ym3bt
@kyle-ym3bt 10 жыл бұрын
Please do a 2D AI tutorial!
@hubert3802
@hubert3802 7 жыл бұрын
super video! any ideas how to control particles speed with a slider?
@BradenLehman
@BradenLehman 8 жыл бұрын
Thanks for making these!
@hariihi6787
@hariihi6787 7 жыл бұрын
Thanks for making useful video! Can you help me out with some more C# to control the transparency of a asset with slider?
@ioanacimpoesu4015
@ioanacimpoesu4015 8 жыл бұрын
that was an awesome video
@TheCrackerok
@TheCrackerok 10 жыл бұрын
Nice tut! Can u make some tutorials about shaders creation ?
@customanimation4u
@customanimation4u 10 жыл бұрын
how about something more useful; like a slider that increases the Particle/burst/time and particles amount, then the user can increase a prefabs particle amount to suit their visual style, then we could add multiple sliders for a few different particle systems and really empower the pause screen? could you set that up for us Brackey master?
@brashtechnologies5767
@brashtechnologies5767 6 жыл бұрын
Thank you
@ksidharth8921
@ksidharth8921 8 жыл бұрын
thanks my hero
@kalysiquirres
@kalysiquirres 8 жыл бұрын
muchas gracias demaciado bueno
@joshuagallua
@joshuagallua 8 жыл бұрын
Thanks, that was super!
@Waaflz
@Waaflz 10 жыл бұрын
You're the best!! Keep it up bro
@SivaPrakashg3
@SivaPrakashg3 7 жыл бұрын
very good tutorial :) thanks
@TalesOfHeilotia
@TalesOfHeilotia 8 жыл бұрын
Hello! Great job. Could you make video of how to change values based on slider movement. Values i mean like not float but int.
@MarekNowakowski
@MarekNowakowski 4 жыл бұрын
I gave up and did whole numbers float, then did x=(int)value.
@MeiklesAndDimes
@MeiklesAndDimes 7 жыл бұрын
very helpful!, thanks
@warcraft3456
@warcraft3456 9 жыл бұрын
hi there, can you maybe also cover a conversation system? where you talk to a npc and have 2 options to choose of and that 1 makes a other npc mad at you or happy.
@ninolucas3140
@ninolucas3140 9 жыл бұрын
Hi sir, can I ask what is the code for the loudness of the music?
@thepolishdane
@thepolishdane 9 жыл бұрын
I dont know if you still answer questions on such old videos... But ill try... Im making a UI slider for SFX and music volumes in my game...,. Is there anyway to make the sliders NOT work with keybord input and only with mouse input.. Because right now if i drag the sliders then the slider is selected and can now work with the arrow keys, which is what is used for controlling the player, that is not very good. I already tried the OnPointerEnter/exit functions, they work,, kind of,, but still not quite what im looking for,, i just want to disable all keyboard functionality on UI stuff in generel.. that would fix my issues.. thx in advance
@Dr.slender
@Dr.slender 4 жыл бұрын
thanks men
@forplayers.studio
@forplayers.studio 8 жыл бұрын
well explained !
@Enderbramm
@Enderbramm 9 жыл бұрын
Thanks!
@BlenderDistrict
@BlenderDistrict 9 жыл бұрын
Made one for x, y, and z speed...it's awesome xD
@kalysiquirres
@kalysiquirres 8 жыл бұрын
gracias
@TheBeastlySolution
@TheBeastlySolution 10 жыл бұрын
Brackeys I have a slider adjusting my volume, but it doesn't "roll over" to other scenes. If I mute the volume, then press "Play Game" (a.k.a load another scene), the volume defaults instead of staying where I set it in the last scene. Any suggestions on how to fix this would be wonderful, thanks.
@mgvideos7122
@mgvideos7122 9 жыл бұрын
hello could help me so I want to do something like tutorial difference is that the slider is the one that suggests a specified direcion my object 3d, thanks
@pellamkrishnasowjanya9816
@pellamkrishnasowjanya9816 7 жыл бұрын
can you please show how to scale game objects by restricting the range of scale and rotation angle in all directions
@capt.mohitsabharwal3621
@capt.mohitsabharwal3621 7 жыл бұрын
Hi!!, Can you please help and advise how to use the Slider for controlling Multiple Cubes which are Spawned on the network for a multiplayer.
@14243251476524365342
@14243251476524365342 10 жыл бұрын
Can you continue with the 2D platformer and C# tutorials please? :)
@thepcgamer101
@thepcgamer101 10 жыл бұрын
How should I do it to adjust my Music/Sound FX slider, plus, how can I turn on and off the Music and Sound FX using the toggle function, please help!
@H1imachicken
@H1imachicken 9 жыл бұрын
CityMayor Games AudioListener.volume
@thepcgamer101
@thepcgamer101 9 жыл бұрын
Thanks :)
@waleedkalid842
@waleedkalid842 9 жыл бұрын
thank you bro
@jordymous1386
@jordymous1386 9 жыл бұрын
Hey Brackeys! I've made a patformer thanks to you! Can you make a video how I can use the UI buttons to make my player move on mobile devices?
@justincudney2627
@justincudney2627 9 жыл бұрын
Instead of using the keys (Input,getKeyDown) you can use functions (void MoveLeft) and just hook that up to a button and you now have a platformer on a mobile device.
@jordymous1386
@jordymous1386 9 жыл бұрын
Thank you! I totally didn't think about that!
@owengold4471
@owengold4471 5 жыл бұрын
nostalgia
@rexfaier20
@rexfaier20 10 жыл бұрын
Will you continue the survival series?
@Gabemeister1201
@Gabemeister1201 10 жыл бұрын
Please make a video on Exit Button if you can, thank you!
@H1imachicken
@H1imachicken 9 жыл бұрын
Gabemeister1201 Application.Quit();
@steelmagnum
@steelmagnum 5 жыл бұрын
Hey Brackeys, what if I wanted to resize or move a sprite mask using the slider? How would I get that to work?
@jessicabell3351
@jessicabell3351 9 жыл бұрын
Could you do a tutorial on game managers that hold your level loads save game and player stats using javascript?
@H1imachicken
@H1imachicken 9 жыл бұрын
jessica bell you can do Playerprefs("Levels",level); give it a google, its hard to do at first but youll get it
@0thekawasakiboy0
@0thekawasakiboy0 9 жыл бұрын
How would i do this with multiple sliders on one script? Will i have to make a new function for each one?
@dianakoshebye8186
@dianakoshebye8186 6 жыл бұрын
Thank you! but what if I wanted to rotate an object just 360 deg and then stop?
@LionFische
@LionFische 8 жыл бұрын
Any hints on how to use this to change the cubes colour?
@osxgamer7745
@osxgamer7745 10 жыл бұрын
i love your channel Because it very very useful :) ^_^ Thank you you rally nice
@Magmafrost13
@Magmafrost13 9 жыл бұрын
so, how do I use a slider to change an object in another scene?
@dafsadfjsadfsakdf435
@dafsadfjsadfsakdf435 8 жыл бұрын
+Magmafrost13 same Question... and also how to make this slider with Script(js)?
@Shannon4710
@Shannon4710 6 жыл бұрын
You could use PlayerPrefs to do it. This would save the settings even if you close the game and restart it again, but you could also design it to reset if you want. Another option would be to use some sort of gamemanager object and apply DontDestroyOnLoad to it. This would save the setting between scenes but it wouldn't save between game sessions. Those two options are fairly simple to implement even for someone new to Unity. I know this comment is several years old but I figured I would answer it for any new viewers with the same question.
@poweredcity3704
@poweredcity3704 4 жыл бұрын
@@Shannon4710 Thank you for posting this, this helped a lot!
@pellamkrishnasowjanya9816
@pellamkrishnasowjanya9816 7 жыл бұрын
what if want to access force and force velocity in hinge joint through slider. in this you used, speed to control its force. in the same way i want to use give speed to object force by accessing component of object.
@creeperizak8971
@creeperizak8971 10 жыл бұрын
hey could you please put a download for that survival game you were making for the unity tutorial?
@creeperizak8971
@creeperizak8971 10 жыл бұрын
could you also put the games code? I need to get the enemy AI code
@McMidas97
@McMidas97 9 жыл бұрын
How do I set the slider value back to a specific value if one is not anymore dragging the slider???
@fiskefyren
@fiskefyren 8 жыл бұрын
is there like a knob that you can use instead of a slider?
@Ichwardort
@Ichwardort 8 жыл бұрын
Is there a code base where I could download your unity examples? tnx kr A.
@linuxuser1234
@linuxuser1234 3 жыл бұрын
@Brackeys how do I write a slider that changes scale of an object
@fuzzripear
@fuzzripear 9 жыл бұрын
Hi, how would I change particle emission rate using this method?
@Herbsttypen
@Herbsttypen 8 жыл бұрын
i'm currently tring to build a randomized "city" by script with a random offset where the buildings are standing. i can make a slider in the inspector to set the offset befor running the game, but i would like to have a slider ingame to set the offset in realtime. i'm trying your tut but it doesn't work. i see in the inspector that the number changes, but the buildings stay at their spot. any tips? sorry for bad english
@joaocosta7981
@joaocosta7981 8 жыл бұрын
+joichschonwieder When are you instantiating the objects?
@kianheus2487
@kianheus2487 8 жыл бұрын
Make sure that your buildings move again after you change the offset value. Rather than putting that movement in Void Start, do it in some sort of Update
@tokyowarfare6729
@tokyowarfare6729 9 жыл бұрын
it is quite anoying that you can not set values to variables directly. Building a func to change the value of a variable looks a bit too much.
@jesperandersson7000
@jesperandersson7000 8 жыл бұрын
How do i make so that when i change the slider value ingame, and then change to another scene, it will be the same as after i changed it?
@AnimatorCoderandGamer
@AnimatorCoderandGamer 10 жыл бұрын
is 10 hour game still happening? I never managed to make a game because I never had the time hopefully I`ll beable too soon if its still on!
@kaushalmishra3901
@kaushalmishra3901 4 жыл бұрын
Dynamic parameters option not showing in slider and drop down menu in unity. Can you help me out to solve this issue? I like your videos and I am also your subscriber. Thank you and help me out to fix this issue.
@graphicx1000
@graphicx1000 5 жыл бұрын
hi team Brackeys love your content do you guys have a whatz app group for game creates were we can chat with you guys kind of one on one l am an artist learning how to code so far your tuts and game jam content has helped me out a lot AND PLEASE PLEASE MORE TUTS
@AZZAMNO1
@AZZAMNO1 6 жыл бұрын
can you actually made a slider that can modify the weapon model. for example i wanted a slider 🎚 that can increase the sword length, thus increase the range but slower the swing speed
@panickal
@panickal 2 жыл бұрын
What if it's not in the same scene though... where do I store the value? And how?
@TheKikger
@TheKikger 2 жыл бұрын
you save it on playerprefs (setint/float) and use it in another scene with getint
@stefanleo6575
@stefanleo6575 8 жыл бұрын
Pls tell me how to do the opposite(change slider when an event occurs)
@Zainjerr
@Zainjerr 4 жыл бұрын
hey did you find out how thats done???
@SpaceNL215
@SpaceNL215 10 жыл бұрын
Are you planning to do a video about making a game multiplayer? Like your 2d platformer. I asked it a few more times but you didn't respond :)
@StaryzHelios
@StaryzHelios 5 жыл бұрын
how to save the slider handler position/value ?
@Samuraicbl
@Samuraicbl 7 жыл бұрын
Super fun! \o
@jakeaquilina505
@jakeaquilina505 9 жыл бұрын
how to control all parameters of the slider via script ? e.g min value, max vale, and Value of the actual slider, i would like to set the Max value my Max Hp, and the Value as my current Hp, the obvious reason is to use it as a Hp bar and other various things, cooldown timers etc. but i cant seem to find it at all and the docs are not finished yet so that's useless. i rather change these via script as i find it easier than doing things in the Gui.
@kira7683
@kira7683 6 жыл бұрын
GameObject slider = GameObject.Find("slider name"); slider.getComponent().MaxValue = 100;
@lateefogunbadejo-asisi4656
@lateefogunbadejo-asisi4656 8 жыл бұрын
hey im having problems authorising my email on your website to leave a question so i'll ask the question here. I want to know how to adjust the code to scale the object instead please. this will be very helpful for my game.
How to make a Video Game - Godot Beginner Tutorial
1:17:12
Brackeys
Рет қаралды 2,1 МЛН
Part 5. Roblox trend☠️
00:13
Kan Andrey
Рет қаралды 2,9 МЛН
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 26 МЛН
Are these words "untranslatable" into English?
23:03
RobWords
Рет қаралды 157 М.
The Most Fundamental Concept in Unity
9:50
Archions
Рет қаралды 53 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 719 М.
Can AI code Flappy Bird? Watch ChatGPT try
7:26
candlesan
Рет қаралды 9 МЛН
Cutscene in Unity 3D | Timeline in Unity | CG Aura
14:13
CG AURA
Рет қаралды 141 М.
10 Unity Tips You (Probably) Didn't Know About
6:47
Sasquatch B Studios
Рет қаралды 43 М.
PAUSE MENU in Unity
12:13
Brackeys
Рет қаралды 989 М.
How to Make Sliding UI Progress and Health Bars [Unity Tutorial]
11:15
Comp-3 Interactive
Рет қаралды 5 М.
How I learned Unity without following tutorials (Developing 1)
18:11
Game Maker's Toolkit
Рет қаралды 2 МЛН
How to Make A Simple Tooltip in Unity Tutorial
8:27
BMo
Рет қаралды 20 М.
Part 5. Roblox trend☠️
00:13
Kan Andrey
Рет қаралды 2,9 МЛН