- Home /
using WWW to upload prefabs/game objects in webplayer... help
Hello, this is my code: what I'd like to achieve is uploading a prefab/gameobject in my scene in the webplayer... is it a good solution? because actually it returns me some errors.. what should I call after having uploaded a prefab/gameobject.
Many thanks.
function buttonwww () {
var www = new WWW("http://localhost/Prefabs/PetrieRoom.prefab");
yield www;
print(www.bytes);
AND THEN!?!! Instantiate(WHAT?)
}
function OnGUI () {
if(GUI.Button(Rect(25,25,100,30),"Load www" )) {
buttonwww(); }
}
Answer by Mike 3 · Sep 01, 2010 at 10:28 AM
You need to use AssetBundles in Unity Pro instead, you can't just try load single assets, as the metadata connected to them won't be imported
Your answer
![](https://koobas.hobune.stream/wayback/20220613072458im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Create prefab from gameobjects at runtime 2 Answers
snapping objects at runtime 2 Answers
Changing Prefabs at Run time 1 Answer
grab all game objects with a distance of the object? 2 Answers
Adding movie texture at runtime 0 Answers