Failed to Instantiate prefab: Car. Verify the Prefab is in a Resources folder (and not in a subfolde

Options
Please help I have got this error message

Failed to Instantiate prefab: Car. Verify the Prefab is in a Resources folder (and not in a subfolder)

Thanks a lot!

Comments

  • jeanfabre
    Options
    Hi,

    Can you confirm you have put a Prefab in your Project Assets under a folder "Resources" named "Car" and it has a PhotonView component on it?

    Resources folder are special folders within Unity assets that can be loaded at runtime, Photon is relying on this for its network instantiation.

    Let me know if you keep having trouble with this.

    Bye,

    Jean
  • tolfer
    Options
    I have photonView component there. Check it on img https://ibb.co/dTXKc5

    Thanks
    Adrian
  • jeanfabre
    Options
    Hi,

    yes, but it's called "Cube", and your implementation expected "Car" as the name of the prefab, at least, that's what the error you paste indicates.

    Bye,

    Jean
  • tolfer
    Options
    OMG Thanks !!! OMG OMG OMG :D ... really thanks it was stupid mistake

    BTW; connection working so awesome :)
  • jeanfabre
    Options
    :) no worries, it happens to all of us :)