The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

photonView is null?

2021-07-28 08:37:57

I'm trying to call RPC from the script, but it throws a null reference exception.

Tried refreshing the RPC list in resources doesn't change anything. Using Unity 2019.1.0f2 and PUN 2.33 Lib


2021-07-28 08:40:55

Note that the object that has this component is instantiated by PhotonNetwork.Instantiate.

2021-07-28 11:08:31

Nevermind, caused by different gameobject using the same component.

2021-07-28 11:33:55

Thanks for updating this and providing an answer!

Back to top