I tried building a web player, while it works if i have a scene and dont have to goto the next one, whne I try to run it like with the above line of code, it does nothing but hangs. I am wondering what might be causing this, my settings or what not? it does load/work in the editor…just not in the webplayer after I do a build. Sort of confused as to why it doesn’t work.
Interesting. Have you tried using it to load a blank scene? Maybe there’s something in the particular scene being loaded that’s hanging it, rather than the LoadLevel call inherently.
If you can LoadLevel a blank scene, then you might try making a copy of the scene that’s hanging, and trimming it until you narrow down where the problem lies. Probably a bug?
Good idea, I did verify it’s not going to the next scene even a blank one. I think because the current scene is a bootstrap one that sets up some file stuff (for save loads), now that I think about it things that are probably not allowed on the web the way I am doing them. Will research it.
Using:
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
and FileStream with BinaryFormatter.