For those having trouble with the object not toggling off, it seems you have to make another animation for the object being off. I'm not sure if the video is outdated or they just forgot. Besides that, I do appreciate this video a lot since I could do this without knowing anything about Unity :) Steps: 1) Make ANOTHER animation for your character the same way as in the video. You can name it "whatevertheobjectnameis off". Go to the object and add the "Is Active" thing just like before. Then make sure it is UNCHECKED instead of CHECKED as it was in the video. 2) Drag the "off" animation into the "Off" FX node's Motion slot. 3) Drag the "on" animation into the "On" FX node's Motion slot. After doing this, the toggling off and on worked for me.
The version of Unity would refuse to let me make a new animation and would insist in using the first one. However, that has a solution too: - Create the one animation with "Is Active" on, like the video says. I named it "glasseson" (I was adding glasses to my character) - Open the folder in Windows file explorer and move the .anim and .anim.meta files (in my case, glasseson.anim and glasseson.anim.meta) - Now you can create the one animation with "Is Active" off. I named mine "glassesoff". - Once you're done, just move back the glasseson.anim and glasseson.anim.meta back, and you can go on normally.
In this video, they don't have an animation set inside the default animation node (which is the orange one) that means if you turn off the button, it will stop playing the "active animation" and revert it back to original, just like how you have your avatar setup in your unity scene. It is possible to make a toggle object with just one animation and I always use the Any state node instead of making transitions between multiple nodes. (You will see it at 9:00 mark where they explain about one parameter, multiple objects) It does work with newest unity version! 1) Turn off the object in your avatar and create an animation that makes the object active. 2) Make a new animator layer and add two nodes inside. The default node should have no animation inside and the other node will have the animation you created. 3) Make transitions from Any State to the two nodes. Set the parameters correctly by setting Default node to 0 and the node the animation has in to 1 The Entry node should be pointing at the default node. 4) Then you just create one toggle button in the menu and only use the toggle that sets the parameter value to 1. Turning that button off will return the value back to 0 so there is no point adding an Object off button there.
This is great! My only problem, is although you do walk me through every little step, you don't exactly explain why we do every step. Some are straight forward, "Here we're making an animation" or "This is where we put the animation in our toggle." But other stuff is never really explained, "Why are we making a parameter and setting it to one?" "Why are we setting Off's transition to one, and On's transition to zero?" It kind of leaves people guessing when they're doing something very similar to making a new toggle (like editing a not so efficent toggle someone else made for their avatar, COUGH Tokushi get your shit together, COUGH) But for what it is, it help a lot! Seriously, came into this is no knowledge and look me now! I'm even complaining about it! I just wish you explained a few things in a bit more detail, that's all.
I genuinely love your videos on unity. I never usually make comments but your videos on unity tutorials are so straightforward, to the point, good mic quality, and you don't go to fast. I just want to say you helped me so much and thank you.
Am I the only one who finds this so asininely complicated for how simple it should be? Toggle something on and off? No problem, you just have to solve 150,000 calculus equations and prove Einstein wrong first.
Yea, that's about what I've found. You set every single possible attribute ever ahead of time, then need to build the event. I'd prefer just give me the code and I'll determine what's going on.
For some reason no matter what I do with the toggles, in game the items are always on my avatar? I don't know how to fix this, I followed the tutorial to a T
Everything went well except for one thing, I used a microphone as my toggle and everything worked fine until I noticed the microphone couldn't be toggled off, how do I fix this?
I've seen some models have a custom image within the toggle section. Example, if it's a guitar prop, it'll actually show a silhouette of a guitar. Same thing for microphone, drums, and other instruments. Have not found a tutorial on how to do this yet...
This really worked! Best tutorial and will always be using this :D The only small issue is when I added another toggle of the same item duplicated and placed somewhere else on my avatar, but it ended up being the same as the first one for some reason? Is there anything I could be missing?
this is a great tutorial, however, I appear to have hit a brick wall cause my avatar uses the "none" option (standard actions) for both the menus and parameters, hence I can't just double-tap it open and edit it. tried to add another one, but it ended up creating the toggle, but with no effect, the jug of brain bleach I created just remains in my hand. I'll try to figure it out, but just figured I'd advise you of that potential situation
thats what no animation does. it will stop looping the animation that was playing and go back to not playing anything. Best way I can explain this in the comments is in the animator it will always check parameters to see if there true or false or if its value has changed. As long as it is true it will keep playing the animation that you have to toggle on something and once it is false it will go back to playing no animation so the object you created to toggle on in the animation will stop playing
this video helped me so much as a beginner! i attached a hula hoop to my avatar and it looks great! any way you can point me to a good tutorial on how to have color toggle of an attached object?
I couldn't get this to work... Every time I go to animator to try to add properties the button is always greyed out for me... And I need to make clothing toggles
Could you mayhaps make a tutorial about how to make an fx layer from scratch? ive started to get into the problem of my faces getting stuck and overlaping and every tutorial and help didnt bring me closer to a solution to what im doing wrong.
hey just wondered if i could get some help? i've done all the steps correctly but when i go in game the toggle doesnt work, but it is changing the int from a 0 to a 1 but i dont know what to do
I will definitely try this out! Other tutorials seem to miss important steps, but this seems to show everything! Video quality could be better since I couldn’t read most of the stuff, but otherwise very good tutorial!
This worked well for me but for some reason when I go to click the animation again to turn it off, it doesn't go away. I followed your directions to a T and don't understand what I missed
works flawlessly - i just don't understand: Why is it actually "on" when the condition is set to NotEqual "1"? Isn't the default state of the int "0" ? EDIT: I think actually in the transition tab of "OFF" it asks you what needs to happen in order for it to transition into "ON" then the logic would actually make sense.
Thank you so much! i was having such a rough time trying to figure out why my toggles wernt working. turns out i forgot the fx layer and had lumped it in with my prefab
You can have multiple animations go at the same time as long as they don't mess with each other, so if you make a gesture animation and a toggle animation play at the same time in the animator you just have to have both conditions be the same value so they both turn on at the same time
So next question. The parameter window is not there for me to connect the expression to a linkable channel @7:12. How do i access the window for the expression parameters?
Hey anyway that you could help. I do not have the dialog box for FX step @4:51. How do i access this? -okay found that. Just had to click expression file in the catalogs to find the map tree for the model expressions
You could use one peramiter as an integer and then have different animations for every different kind if clothing. Have an idle (which is no clothing or animation) which goes from start to any, then create a new state for each animation and change the integer number for each one of them that go out from any
For the longest time, Ive never had any issues attaching objects to my model until now! Dont know if you have experienced the same issues but I tried attaching sandles to my avatars ankles. I tried atraching it with and without bones however, everytime I attach it to the model and test out the leg and knee movement with the object attached, the red, blue and green crosshairs are somehow stuck on the avatars ankle when i try to movent the leg or the knee and changes how my avatars bones move for some reason. HELP!!!!
Thanks nearly went insane adding a couple spring joints. For anyone having trouble and cant find solutions consider the possibility that the avatar is just fucked. The first 2 avis I tried were either cracked without my knowledge or horribly made, because following the steps exactly yielded nothing
do you know why my object sounds spam when I'm touching my index controllers during an object toggles that has a sound? its like my gestures keep restarting the sound. i wanna know how to fix this
Just putting it out there for those that might have the same problem as me... but I had a lot of trouble importing to 2019 unity and I have spent 15 hours of my life narrowing the error down and apparently, "off" needed an off motion that's assigned to the same parameter but with nothing on it.
**emmVRC logo shows up** Vrchat moderators watching this video: I'm going to pretend I didn't see that. Jokes aside great tutorial, I got a little confused at the end but that wasn't your fault it was mine lol, only change I would recommend for your next video would be to try to increase the volume, I feel like with most videos I can have my volume set to 30 and be able to hear it perfectly fine but I had to increase it to 50, sorry if it sounds like I'm complaining I'm not I'm just trying to leave some constructive criticism!
no, in assets there should be a search bar on the top right of the assets box, just search for the name of the animation and it should bring it up or you can in the animator where you go to insert your aniamtion there should be a circle to the right which will bring up a list of animations in your project or you can search for it there as well.
@@burnaking9968 Thanks but I have done everything you've told me and it still does not pop up, I think I didn't have a folder open when I made the animation
Wow that´s cool and awesome for nooby beginners like me! Say, if i want to make a puppet and hold it in my hand, can i give it mouth movement animations when i talk, like any ordinary speaking vrchat avatar? If yes, how?
Hey hey! Is there a way to make for example sunglasses that you have on your head, moves to your face/nose with a toggle like that? didn't find any ways to do it, thanks!
Yes, if you move the glasses to where you want them to be on the model and in the hierarchy drag the glasses onto the head (which you can access by pressing the arrows to the left until you reach the head) or part of the head you want the glasses to follow and move along with
@@burnaking9968 Okayyy i managed to do it, had to use the "transform rotation/position" in the animator, unmark the "loop", delete the second time stamps, and follow the tutorial, thank you! +1like and sub. Looking forward for more!
For those having trouble with the object not toggling off, it seems you have to make another animation for the object being off. I'm not sure if the video is outdated or they just forgot. Besides that, I do appreciate this video a lot since I could do this without knowing anything about Unity :)
Steps:
1) Make ANOTHER animation for your character the same way as in the video. You can name it "whatevertheobjectnameis off". Go to the object and add the "Is Active" thing just like before. Then make sure it is UNCHECKED instead of CHECKED as it was in the video.
2) Drag the "off" animation into the "Off" FX node's Motion slot.
3) Drag the "on" animation into the "On" FX node's Motion slot.
After doing this, the toggling off and on worked for me.
The version of Unity would refuse to let me make a new animation and would insist in using the first one. However, that has a solution too:
- Create the one animation with "Is Active" on, like the video says. I named it "glasseson" (I was adding glasses to my character)
- Open the folder in Windows file explorer and move the .anim and .anim.meta files (in my case, glasseson.anim and glasseson.anim.meta)
- Now you can create the one animation with "Is Active" off. I named mine "glassesoff".
- Once you're done, just move back the glasseson.anim and glasseson.anim.meta back, and you can go on normally.
In this video, they don't have an animation set inside the default animation node (which is the orange one) that means if you turn off the button, it will stop playing the "active animation" and revert it back to original, just like how you have your avatar setup in your unity scene. It is possible to make a toggle object with just one animation and I always use the Any state node instead of making transitions between multiple nodes. (You will see it at 9:00 mark where they explain about one parameter, multiple objects) It does work with newest unity version!
1) Turn off the object in your avatar and create an animation that makes the object active.
2) Make a new animator layer and add two nodes inside. The default node should have no animation inside and the other node will have the animation you created.
3) Make transitions from Any State to the two nodes. Set the parameters correctly by setting Default node to 0 and the node the animation has in to 1
The Entry node should be pointing at the default node.
4) Then you just create one toggle button in the menu and only use the toggle that sets the parameter value to 1. Turning that button off will return the value back to 0 so there is no point adding an Object off button there.
They did it in a correct fashion, you just didn't follow.
i tried that but it just stops working all together.
you're a life saver!
I needed a slower tutorial that was easy to understand and you did a great job. Tysm!
this is like.. the cutest tutorial ive ever seen in my entire life.
jeez man, probably the best and straight forward tutorial i've watched on this, thank you!
I just wanted to say that im very thankful for this video bc i wouldnt have figured this out on my own
okay i admit it....this guy taught me to make toggles best video ive seen and i watched a lot of them
even until now i keep coming back to this video because it's really helpfull, thank you so much
youre the only person that made sense and now i have a katana yay
This is great!
My only problem, is although you do walk me through every little step, you don't exactly explain why we do every step. Some are straight forward, "Here we're making an animation" or "This is where we put the animation in our toggle."
But other stuff is never really explained, "Why are we making a parameter and setting it to one?" "Why are we setting Off's transition to one, and On's transition to zero?"
It kind of leaves people guessing when they're doing something very similar to making a new toggle (like editing a not so efficent toggle someone else made for their avatar, COUGH Tokushi get your shit together, COUGH)
But for what it is, it help a lot! Seriously, came into this is no knowledge and look me now! I'm even complaining about it!
I just wish you explained a few things in a bit more detail, that's all.
Wow I was so intimidated to do this on my own avatar but your tutorial was so simple and clear it gave me courage to try! Thank you so much!
I. Love. U!!!!
I already try a lot of tutorials and no one works, but yours works perfectly!
Thanks!!
I genuinely love your videos on unity. I never usually make comments but your videos on unity tutorials are so straightforward, to the point, good mic quality, and you don't go to fast. I just want to say you helped me so much and thank you.
im a little confused... i have FX but when i click it it just edits the thing saying "None (Runtime..." and i have no idea how to get around this...
So I've already attached all the meshes in Blender before hand but I don't know where to see each of the meshes in Unity
This video made me feel smart for once
this is the best video so far holy shit. all the other's are fucking so confusing thanks bro
Am I the only one who finds this so asininely complicated for how simple it should be? Toggle something on and off? No problem, you just have to solve 150,000 calculus equations and prove Einstein wrong first.
Basic monday
Yea, that's about what I've found. You set every single possible attribute ever ahead of time, then need to build the event. I'd prefer just give me the code and I'll determine what's going on.
This guy needs more views this is hands down the best and most straight to the point video I’ve seen
at 4:39 i don’t have the fx thing in my screen, anyone know why?
Same :(
After a few tries, it worked!
this man deserves a play button=
super helpful! i made a Mariachi penguin with a toggleable quitar
For some reason no matter what I do with the toggles, in game the items are always on my avatar? I don't know how to fix this, I followed the tutorial to a T
THIS
Thank you SO much for this, This is a better way of doing this then I used before and I'm very thankful
goated tutorial thank you o.0
Thanks very much for the tutorial, this helps so much for a newbie like me. Really appreciate it
i dont have a FX Controller, ive tried but i can only figure out how to add a custom exspression one, where would i create one for fx?
Everything went well except for one thing, I used a microphone as my toggle and everything worked fine until I noticed the microphone couldn't be toggled off, how do I fix this?
i've watched the same tutorial every time i make an avatar cuz i can't keep this knowledge, Thx for helping this stupid teddy
thanks, my friend asked me if I could make him a vrchat avatar with a toggleable sword. This will definitely help!
I've gotten to 6:55 but u can't find the animation file, is there a reason why?
so im having a problem a little with the FX, For some reason it comes up as "None" And i don''t know what to select. what do i have to do there?
make sure the model your trying to import is a .fbx or another supported file type. I dont believe FX will work
double click on FX ? there is nothing to click on as my FX box is empty, do i create a new FX instance and use that?
This helped so much oml… thank you so much
7:10 i dont have a parameter option?
I've seen some models have a custom image within the toggle section. Example, if it's a guitar prop, it'll actually show a silhouette of a guitar. Same thing for microphone, drums, and other instruments. Have not found a tutorial on how to do this yet...
that is something I can certainly make a tutorial video for. Thank you for the suggestion
Great tutorial worked Thanks!
i followed this guide and when i had the toggles ingame i cant turn them off
same! lol
This really worked! Best tutorial and will always be using this :D The only small issue is when I added another toggle of the same item duplicated and placed somewhere else on my avatar, but it ended up being the same as the first one for some reason? Is there anything I could be missing?
hey could you put a link of where you got the guitar object i've been looking for one like that and i cant find one
where do u get models from? like the guitar you used?
Best tutorial for that stuff out there! The others are way too complicated, long or just don't explain a lot of stuff.
Thanks bud! +1 like!
this is a great tutorial, however, I appear to have hit a brick wall cause my avatar uses the "none" option (standard actions) for both the menus and parameters, hence I can't just double-tap it open and edit it. tried to add another one, but it ended up creating the toggle, but with no effect, the jug of brain bleach I created just remains in my hand. I'll try to figure it out, but just figured I'd advise you of that potential situation
Love your videos and would like to see more.
thank you! \(TnT)/ was able to add objects in less than 10 minutes. you're the g.o.a.t.
great and easy tutorial, keep up the great work!
How does this work without a second animation to toggle the guitar back off?
thats what no animation does. it will stop looping the animation that was playing and go back to not playing anything. Best way I can explain this in the comments is in the animator it will always check parameters to see if there true or false or if its value has changed. As long as it is true it will keep playing the animation that you have to toggle on something and once it is false it will go back to playing no animation so the object you created to toggle on in the animation will stop playing
Given im making an avatar that looks just like this, this was helpful
I love your character. He looks so snuggly
omg you saved me from ripping my hair out , thank you so much
this video helped me so much as a beginner! i attached a hula hoop to my avatar and it looks great! any way you can point me to a good tutorial on how to have color toggle of an attached object?
I couldn't get this to work... Every time I go to animator to try to add properties the button is always greyed out for me... And I need to make clothing toggles
Could you mayhaps make a tutorial about how to make an fx layer from scratch? ive started to get into the problem of my faces getting stuck and overlaping and every tutorial and help didnt bring me closer to a solution to what im doing wrong.
ya, I can try to when I get the time
I have the issue where the toggle is just set to active when I join into the game.
hey just wondered if i could get some help? i've done all the steps correctly but when i go in game the toggle doesnt work, but it is changing the int from a 0 to a 1 but i dont know what to do
I got the same problem, I will try to get this fixed as soon as possible and notify you how to fix it if you haven't already
Thanks so much for making it clear, many people apparently can't do that :/
hey, I dont have any parameters to add a parameter to. how do i do that?
nvmd found a comment explaining it thank you
this helped me a lot ^^ thank you so much,
I will definitely try this out! Other tutorials seem to miss important steps, but this seems to show everything! Video quality could be better since I couldn’t read most of the stuff, but otherwise very good tutorial!
This worked well for me but for some reason when I go to click the animation again to turn it off, it doesn't go away. I followed your directions to a T and don't understand what I missed
Same here
@smolderaking same here please help
@@Jestering8493 sameee
i did all your steps but now im spawning with my object and i would prefer to only make it appear when I activate it on the menu...
Did you ever figure this out?
@@aero1x7 sry man, i remember back then just giving up lol
shit i can't believe it's been an year already 😭
Can you use bools to do your toggle switching rather than integers to save space in your parameters?
yes, bools are honestly recommended over integers. I just didn't know much about bools at the time so that's why I used integers in the video
How do I make it so when I toggle on 1 prop it toggles off another
Thanks it has help me a lot, Thank you very much 😇
For some reason when I hit add property there is no tab for armature.....
Do you know how to make an object move between left hand and right hand,But not close it in one hand and open it in the other
works flawlessly - i just don't understand: Why is it actually "on" when the condition is set to NotEqual "1"? Isn't the default state of the int "0" ?
EDIT: I think actually in the transition tab of "OFF" it asks you what needs to happen in order for it to transition into "ON" then the logic would actually make sense.
Thank you so much! i was having such a rough time trying to figure out why my toggles wernt working. turns out i forgot the fx layer and had lumped it in with my prefab
Why an INT and not a BOOL for a boolean toggle?
When I go to double click "FX", theres nothing in the slot, and nothing happens.
you have to create a new animation controller then put it where the guy put his thing named "FX"
Also what if for a toggle, I wanted to add a gesture to that to make it play a sounds or have a partial effect to it?
You can have multiple animations go at the same time as long as they don't mess with each other, so if you make a gesture animation and a toggle animation play at the same time in the animator you just have to have both conditions be the same value so they both turn on at the same time
So next question. The parameter window is not there for me to connect the expression to a linkable channel @7:12.
How do i access the window for the expression parameters?
Hey anyway that you could help. I do not have the dialog box for FX step @4:51. How do i access this?
-okay found that. Just had to click expression file in the catalogs to find the map tree for the model expressions
Can I do this process on the oculus device
did i miss a step, my toggle wont turn off
Great tutorial. Tyvm
it worked pretty alright but it caused a issue where the object would stutter on and off until i toggled it on is there a way to fix that?
i need a video about toogle things with the controller trigger xD
So, when I tried looking for my object in the conditions dropdown menu, it didn't come up, I followed all the things you did so im confused ; - ;
How would you go about having multiple types of clothes and when I toggle on one of them, the other detoggles.
You could use one peramiter as an integer and then have different animations for every different kind if clothing. Have an idle (which is no clothing or animation) which goes from start to any, then create a new state for each animation and change the integer number for each one of them that go out from any
So helpful! Thank you
Seems you also know somebody I do in VRC
i dont have some of these menu
Thank you this helped a lot!!
For the longest time, Ive never had any issues attaching objects to my model until now! Dont know if you have experienced the same issues but I tried attaching sandles to my avatars ankles. I tried atraching it with and without bones however, everytime I attach it to the model and test out the leg and knee movement with the object attached, the red, blue and green crosshairs are somehow stuck on the avatars ankle when i try to movent the leg or the knee and changes how my avatars bones move for some reason. HELP!!!!
does this also works with world objects? Like can I just spawn a random object into any world?
Thanks nearly went insane adding a couple spring joints. For anyone having trouble and cant find solutions consider the possibility that the avatar is just fucked. The first 2 avis I tried were either cracked without my knowledge or horribly made, because following the steps exactly yielded nothing
can u make a tutorial on how to re-add vrchat default emotes into the menu after custom ones?? thank you for the great video!
do you know why my object sounds spam when I'm touching my index controllers during an object toggles that has a sound? its like my gestures keep restarting the sound. i wanna know how to fix this
There should be an option to turn looping off for the audio when you select it and look in the inspector
@@burnaking9968 I thought that was it too but looping is unchecked for all my audio files but they still spam when i toggle
I followed the instructions directly. Does anybody know why my toggled object keeps flickering off and on
when i toggle item on it appear but when i turn it off it doesnt go away.
imma check if i made any mistakes.
PROBLEM SOLVED.
make separated animation where the object or (guitar) is not turned (on) but off.
put that off animation on the OFF in the FX.
Just putting it out there for those that might have the same problem as me... but I had a lot of trouble importing to 2019 unity and I have spent 15 hours of my life narrowing the error down and apparently, "off" needed an off motion that's assigned to the same parameter but with nothing on it.
**emmVRC logo shows up** Vrchat moderators watching this video: I'm going to pretend I didn't see that. Jokes aside great tutorial, I got a little confused at the end but that wasn't your fault it was mine lol, only change I would recommend for your next video would be to try to increase the volume, I feel like with most videos I can have my volume set to 30 and be able to hear it perfectly fine but I had to increase it to 50, sorry if it sounds like I'm complaining I'm not I'm just trying to leave some constructive criticism!
I appreciate constructive criticism, it helps me to improve and better my videos but ya the low audio I can 100% agree with.
@@burnaking9968 Np! Glad to help
This video was great but I can't find my animation, I don't think I had a folder open, do I have to ree do the whole thing now?
no, in assets there should be a search bar on the top right of the assets box, just search for the name of the animation and it should bring it up or you can in the animator where you go to insert your aniamtion there should be a circle to the right which will bring up a list of animations in your project or you can search for it there as well.
@@burnaking9968 Thanks but I have done everything you've told me and it still does not pop up, I think I didn't have a folder open when I made the animation
@@burnaking9968 Oh nevermind I found the problem! Haha thanks man for the great video! You're getting one like and one sub. Have a good day
Wow that´s cool and awesome for nooby beginners like me! Say, if i want to make a puppet and hold it in my hand, can i give it mouth movement animations when i talk, like any ordinary speaking vrchat avatar? If yes, how?
I got this to work once, but now it wont toggle off on a different project.
how do you rotate the object
Press e to rotate, W to move, and R to resize
Agh, my model doesn't have FX for some reason
Hey hey! Is there a way to make for example sunglasses that you have on your head, moves to your face/nose with a toggle like that? didn't find any ways to do it, thanks!
Yes, if you move the glasses to where you want them to be on the model and in the hierarchy drag the glasses onto the head (which you can access by pressing the arrows to the left until you reach the head) or part of the head you want the glasses to follow and move along with
@@burnaking9968 Alright, thanks for your answer, i'll try it out!
@@burnaking9968 Okayyy i managed to do it, had to use the "transform rotation/position" in the animator, unmark the "loop", delete the second time stamps, and follow the tutorial, thank you! +1like and sub. Looking forward for more!
That's a sweet ass guitar too! Ibanez's are great axes
hell yeah man