Instantiate a procedurally generated map

Options
Hello,

Is it possible to instantiate a procedurally generated map?

PhotonNetwork.Instantiate takes as first argument a string representing the name of a prefab. I plan on generating my map procedurally, therefore I will not have a prefab of it. Can I instantiate an object created in code? If not, what could I do in order to achieve procedural generation on a multiplayer game?

Thank you

Comments

  • vadim
    Options
    Hi,

    Check "Gain more control: Manually instantiate" section at http://doc-api.exitgames.com/en/pun/cur ... iateManual
    You may need add PhotonView to object if object has no this component yest
  • Tobias
    Options
    In best case, you sync just the seed value to generate the map on all clients (which means the map generation must be deterministic, so a simple value is enough to get good results).