Quantcast
Channel: Answers by "AyAMrau"
Viewing all articles
Browse latest Browse all 91

Answer by AyAMrau

$
0
0
You either make a script that has a GameObject field (or a component that is on the prefab) exposed in the inspector and manually assign the prefab (from the Project tab) in the editor. A more dynamic way is to load it from resources - [Docs with an example][1] [1]: http://docs.unity3d.com/ScriptReference/Resources.Load.html

Viewing all articles
Browse latest Browse all 91

Trending Articles



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