- Home /
Instantiate doesn't work with photonView.isMine?
I have this script which instantiates a bubble when the player clicks, and then follows them
if (photonView.isMine) {
if (Input.GetMouseButton(0))
{
//Sends out a raycast here but i'll miss out that part
PhotonNetwork.Instantiate(bubbleprefabname, transform.position, transform.rotation, 0);
}
When this bubble is instantiated, it shows up on the player's screen as following them, however if you look at another player's screen, the bubble is following this player,, and not the player that instantiated it.
Any help?
Thanks
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How to change colors in unity using photon? 0 Answers
Photon Unity Networking Score Issue 1 Answer