- Home /
How to load a prefab / object from a http source (e.g. REST API)?
Is there a way to do a Resources.Load but instead of loading resources from a file path, you can specify a URL and it'll load the prefab from that location and inject it into the scene in runtime?
Answer by antx · Jan 18, 2016 at 09:26 AM
http://docs.unity3d.com/ScriptReference/WWW.html
This should give you all you need.
Answer by SunnyChow · Jan 19, 2016 at 05:42 AM
Well you can use class WWW to load an asset bundle and then load a prefab from it. Directly loading a prefab is not officially supported. I guess System.Runtime.InteropServices.Marshal may be possible to do that but I havn't tried
Your answer
Follow this Question
Related Questions
Referencing prefab in code without using editor or Resources.Load? 0 Answers
Get data from REST works on Unity but not on Android Device 1 Answer
Simple HTTPS question 1 Answer
http request over an https webgl 1 Answer
Json Post to https 2 Answers