Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

How do I instantiate if I don't have a prefab in resources folder?

$
0
0
As thread states, I don't have a prefab in resources folder, instead, I load my gameobject in the game using unity instantiation. I instantiate different prefabs in correct positions and hierarchy into a player (imagine a robot, being made of 4 wheels, a chasis, and 2 plasma rifles).
Since I do have serialization that handles this for me, and the robot is created at runtime and later serialized, I do not have "PREFAB", I just have a gameobject that is made of prefabs, thus I can't put it in resources folder or anything like that.

Can someone help me with what I can do here?

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>