My OnTriggerEnter function in Unity doesn't show for every player. Why?
Options
I am currently working on an online game in Unity. I deactivated a GameObject with my OnTriggerEnter function but it only gets deactivated for the player who collided with the GameObject. I do not know how to fix this. Can anyone help?
0
Answers
-
Unity functions still work as usual: Locally only. If something happens that every client needs to know about, there is a good chance you have to send info about it manually or use some component to do that.
Disabling a GO is not synced automatically. You could send an RPC or something alike from the client who has the authority to define that the object needs to be disabled.
0