i keep getting the same error when im addind my gameobject into the script. error: Object reference not set to an instance of an object. how do i fix this?
Ok, I manage to do everything correctly on this, it works too, but what if you have multiple objects that you want to work the same thing. I manage to have it work with one, How can you do it 2 or more? Is there a group thing I need to add? How do we do it?
I currently do not have a tutorial on this but what you can do for now is , have one empty game object and drag all the objects you wanna toggle into it so they are parented to it , then you can toggle one object and everything that is a child object of it will also toggle
not sure if you have figured it out or not but it's because you have to make sure that the object you want to mess with is in the inspector, there's a place for any object. that's why your button disappears.
Can I not have more than 1 SendCustomNetworkEvent? I try adding a second one of these to a completely new separate script but the drop down menu for choosing what I name the custom network is greyed out, no matter how many times I click compile and reload...
Nevermind, I figured it out! It was just because I need to actually connect the "event custom" to the "set active" for the SendCustomNetworkEvent to register the new event!
This works with a toggle button to activate the global sync. How can you sync an object (with animation) without having the player touch a toggle stick? Doubt I will get a reply, but worth the shot. Thanks!
If you want the door just to be standard off on first join all you have to do is turn the door object your toggeling standard off the code will adjust to that and then toggle on when the button is clicked ^^ Hope i was able to help If you have further questions write me on discord Nekomian#6669
this does work but what I'm trying to do is have a rope toggle (working on a club world) the rope does disappear but I can't seem to have it respawn with this tut, I feel iike I'm doing something wrong but I followed it step by step.
Hey i've used this tut in my world it works but for late joiners it's Desynced i've done everything in this tut to a T and it still hasnt worked and help would be great please
Hey, you can just use the built-in GlobalToggleObject script in your Assets folder for the exact same effect. This video isn't the best approach for syncing objects, maybe it's good if you need faster response time, but I think, when multiple people trying to access the same door, it can get desynced, so that's why it's better to have only 1 owner to keep track of the door's state. You can also transfer the door's ownership to another player. For example, if the owner is nowhere near to a specific door, it maybe better to just transfer the ownership to the next person who is trying to access it currently, then if the new owner trying to close/open the door after the 1st try, the door will be opened/closed much faster in the following attempts, because the ownership got transfered to the new player.
Hey if you did everything like its shown in the video it will work , i watched through it again to make sure i dont have a mistake,if you have questions i can help you with tho feel free to write me on discord Nekomian#6669
this video is **so important** if you want to make worlds for more people then only yourself
Thank you for making this I was about to cry myself to sleep because i could not fingerite out
Please dont cry :c , xD but im happy it helped
thanks. haven't tried it yet but you explanation was great.
Im So happy you think so ^^
i keep getting the same error when im addind my gameobject into the script. error: Object reference not set to an instance of an object.
how do i fix this?
Bro you a so Amazing
this is so much more difficult than vrcworldsdk 2.0
True but once you get used to it you can truly create some amazing stuff
Ok, I manage to do everything correctly on this, it works too, but what if you have multiple objects that you want to work the same thing. I manage to have it work with one, How can you do it 2 or more? Is there a group thing I need to add? How do we do it?
I currently do not have a tutorial on this but what you can do for now is , have one empty game object and drag all the objects you wanna toggle into it so they are parented to it , then you can toggle one object and everything that is a child object of it will also toggle
I followed this and the button disappears, Is this because only 1 graph or both need to be in the script?
not sure if you have figured it out or not but it's because you have to make sure that the object you want to mess with is in the inspector, there's a place for any object. that's why your button disappears.
Can I not have more than 1 SendCustomNetworkEvent? I try adding a second one of these to a completely new separate script but the drop down menu for choosing what I name the custom network is greyed out, no matter how many times I click compile and reload...
Nevermind, I figured it out! It was just because I need to actually connect the "event custom" to the "set active" for the SendCustomNetworkEvent to register the new event!
This works with a toggle button to activate the global sync. How can you sync an object (with animation) without having the player touch a toggle stick? Doubt I will get a reply, but worth the shot. Thanks!
Thank U so much
No problem ^^
how do i make it where the door if off when you join the server
If you want the door just to be standard off on first join all you have to do is turn the door object your toggeling standard off the code will adjust to that and then toggle on when the button is clicked ^^
Hope i was able to help
If you have further questions write me on discord Nekomian#6669
this does work but what I'm trying to do is have a rope toggle (working on a club world) the rope does disappear but I can't seem to have it respawn with this tut, I feel iike I'm doing something wrong but I followed it step by step.
Make sure you are setting the game object on or off depending on the "unary negation" node
Hey i've used this tut in my world it works but for late joiners it's Desynced i've done everything in this tut to a T and it still hasnt worked and help would be great please
Hey, you can just use the built-in GlobalToggleObject script in your Assets folder for the exact same effect. This video isn't the best approach for syncing objects, maybe it's good if you need faster response time, but I think, when multiple people trying to access the same door, it can get desynced, so that's why it's better to have only 1 owner to keep track of the door's state.
You can also transfer the door's ownership to another player. For example, if the owner is nowhere near to a specific door, it maybe better to just transfer the ownership to the next person who is trying to access it currently, then if the new owner trying to close/open the door after the 1st try, the door will be opened/closed much faster in the following attempts, because the ownership got transfered to the new player.
Did not work
Hey if you did everything like its shown in the video it will work , i watched through it again to make sure i dont have a mistake,if you have questions i can help you with tho feel free to write me on discord Nekomian#6669
it works for me