How to do toggles in Unity 2019, step by step tutorial.

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
today i'm gonna be showing you how to do toggles in 2019 unity or well the way i know how to do it so first of all what you're gonna do is you wanna have selected the thing that you want to toggle in my case i'm gonna have i'm gonna do the body harness next you want to select your avatar and on the right side on the controller click the little circle next to it and you want to find the fbx controller of your avatar in my case it's the first one after that you're going to you're going to go to your animator click the little plus sign scroll down and name of the thing that you want to have it toggled um and note here you need to remember the name of the thing that you're toggling because it needs to be named everywhere else click the little gear on it click wait then go to your parameters we're going to do the same thing click on all plus and then right here you want to click on bool you can do the int as well but in this case i'm doing the bowl scroll down and you're going to name it the same as you name it in your layers next you're going to right click on the window next to it create and then empty and then do this again position it how you want to next you want you want to click on the first one make transition and make decision back you basically right click and then you make decision between them click on this little arrow and on the right side click plus here now where it says vr emotes you just want to click it and you want to find the thing that you named the thing next to it uh i'll i'd leave it the same as it is i don't want to touch it and just do the other thing do the same on the other but in this case make it disable now half exit time has exit time you don't need to do this but if you want to you can next you're going to go back on your assets in the empty space you want to go create and then animation click on it and you want to basically name it uh how you want to but in this case i'm just going to use the name the same name everywhere click on it and make sure that the loop time is on next you want to go up all the way at the top we'll go window go animation and now you can drag this little window i'm going to drag next to my animator because it's much more easy to work with you want to click on your avatar on the right on the left and now as you can see we see a bunch of little cool windows here [Music] you want to go back on your animator and click on the second window that we selected and up at the top right here where it says motion you want to select it and then find the thing that the of the thing that you want to turn on once you got that done you want to go back on the animator as where it says happy here you just want to find the thing it might say something different for you but it the location is the same so you just click on there and just make uh select the thing that you what you're using now you want to click add priority and now in this case if it's your glasses on your head you want to go armature and open your avatar all the way until you see head set glasses but in my case it's just at the bottom here so i'm just going to select it it may not be at the bottom for you you'd have to maybe go dig for it but once you find it you click is active and then plus now you wanna select the one second which is just click next to it and you should be selected and you just drag the thing all the way to the that is on the right to the left you want to go down at the search bar and just type in sub and just go sub toggle once you got that done you want to add a controller and then name it the same that we for where it's everywhere and you want to name it the same and you can also add a small little texture in the menu if you want to be fancy about it also make sure that the type is toggle click on your avatar again and go find the parameters if you go now click on add and now name it the same again the same name where we use everywhere and you want to click on bool go to your subtoggle again extend the thing that you're working on you want to go parameter and then where it says none you want to find your thing in my case the body harness next click on your avatar go animator and now where it says happy there select you should see your glasses and now as you can see we have an animation on and off before uploading your avatar make sure that you have selected the thing on the in the hierarchy and just hide it on the right and if it's hidden on your avatar by default you're just good to go fix anything if there's something to fix and you're good to upload and now as you can see in the game in my menu it works but anyway i hope that this video helped and i really hope that you can do some cool things now i'm going to go turn off my pc because i'm tired of unity
Info
Channel: 20Dan
Views: 810
Rating: undefined out of 5
Keywords:
Id: IDEdnMe5NvU
Channel Id: undefined
Length: 5min 48sec (348 seconds)
Published: Sat Sep 04 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.