UI Image not showing up when multiple players in game.

I have an inventory system that adds the images of a weapon when the player picks it up. The system works fine when there is only one player, but when there is multiple players, the system falls apart.

I put some "print" statements in the inventory to see if the code is working, and the print shows up, but the weapon images don't.

Comments

  • Okay, I figured out a fix:

    One my inventory code, I had "instance = this" in the awake function. This code would run on all of the players, so I just checked if "isMine", and moved the code to the start function, and everything worked.
Sign In or Register to comment.