Search Unity

Question Sharing non prefabs across multiple users via PUN.

Discussion in 'UNet' started by athenarcxanthi, Jul 4, 2022.

  1. athenarcxanthi

    athenarcxanthi

    Joined:
    Apr 15, 2022
    Posts:
    2
    Hello! I am developing an app for Hololens 2 and I am currently stuck in a sharing related issue. I am using Photon to do the sharing, and PhotonNetwork.Instantiate() can create game objects from prefabs which include the PhotonView script component, along with the components that give them the functionality I need.

    The problem arises in my need to let the users find 3d models from an in-app file browser or an internet browser and load them to the scene, as these new models include only graphics related information. PhotonNetwork.Instantiate() can instantiate only prefabs, which i cannot process and save at runtime. I tried to manually instantiate a 3d model, which allowed me to add components to it before sharing, but this method requires all users to have access to the specific 3d model.

    Excuse me for missing an obvious way around the problem. I am kinda newbee.

    Both PhotonNetowork.Instantiate() and manual instantiation can be found here:
    https://doc.photonengine.com/en-us/pun/v2/gameplay/instantiation#manual_instantiation
     
  2. vvalente

    vvalente

    Joined:
    Dec 3, 2014
    Posts:
    1
    Hi, I'm facing the same problem. Did you manage to solve it?
    Thanks