Network instantiating without using Resources

Options
Hi, I can't use resources on some of the prefabs in my games, is there any other way to instantiate it over the photon network without having to use the resources folder?

Thanks in advance.

Comments

  • Tobias
    Options
    You can manually allocate and assign PhotonViews to your instantiated GameObjects, yes. Then you don't have to use the Resources folder but you have to make sure all clients create the same GameObject locally and assign the ViewId accordingly.
    Let's say you instantiate something, then you allocate a PhotonView ID for it. Locally, put a photon view on the new game object, assign the ID and send an RPC to the others with that viewID. You basically tell all clients to create the GO the same way.

    The documentation in the package has a brief summary of this, too.