Making PhotonNetwork.AllocateViewId(int ownerId) public instead of private?

Options
I want to manually instantiate a GO. I followed the example in the docs but the problem with that approach is that it only allocates a view id for the first photon view it finds before calling the RPC. The problem with that is if you have a GO with multiple nested GOs which have their own PhotonView, then they don't get a view id. I was looking through the code to see how the PhotonNetwork.Instantiate method has access to PhotonNetwork.AllocateVewId that takes an int parameter of the owner. Am I doing something wrong by giving child GOs their own PhotonViews or should AllocateViewId be made public?

Comments