Why Isn't my Game Object Instantiating over the Network?

Options
I have the following line of code in my project: GameObject InstantiatePixel(Vector2 pos) { return PhotonNetwork.Instantiate("Pixel", pos, Quaternion.identity, 0); }. I was wondering why this line of code only instantiates the Pixel game object on the client who runs this code. I'd like the game object to instantiate on the computers of anybody who has joined the room. Why doesn't this have that affect?

Thanks!

Best Answer

Answers