photon.instantiate all objects under resources/folder

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

photon.instantiate all objects under resources/folder

dshewmaker
2014-02-14 00:22:57

All the docs state you have to have all objects in the Resources folder and not a sub folder. I would really like to organize game objects and just dumping them all in the resources root is going to get messy. How do other people get around this?

I tried adding a folder name, but it only works if it is in the root folder called resources.

Comments

Tobias
2014-02-14 08:54:02

I think you can have a Resources folder in any subfolder. But you can't have the prefabs in Resources\Subfolder. You could get around this by manual allocation but that's not very comfortable on the programming side. A rough outline how to do that is in the included pdf though.

mody
2021-08-21 00:58:06

@Tobias helpful thanks

Back to top