I’ve been experimenting with the limits of what I can do with the Unity Web Player. I’m trying to see if it is possible using Javascript to change the web player’s .unity3d file at runtime? For example…
function LoadNewUnity(unityPath) {
var unity = GetUnity();
unity.embedUnity("unityPlayer", unityPath, 600, 450);
}
I call this function using a trigger I set up in game with a new .unity3d file path. I know the path is correct. Naturally it doesn’t work, just redirects me to the loader page I’ve set as the next level. I’m terrible with Javascript (hardly any experience) so any insights would be helpful.