Would it be possible to make a Unity app that acted as a scene loader and therefore could run any webplayer scenes?
Do you mean running .unity3d files? if so no, I don’t think so.
I am not sure what your needs are exactly, but I believe a viable option might be to create each game as an asset bundle that could then be loaded into your root program. I don’t know how large you would want each game though as it may become a hassle to manage, though this may work for smaller casual games. All this is pending on the owning of a Unity Pro license though.
You can dynamically swap .unity3d files in the browser but they have to be web player builds still…
I made a kinect game in the browser (using a plugin called zigfu) so I can overlay html5 over the unity player window for video with alpha, and I just specify the .unity3d package in my html template for whichever build I want to display. I don’t use the html that unity outputs, just the .unity3d part.
<script type="text/javascript">
<!--
function GetUnity() {
if (typeof unityObject != "undefined") {
return unityObject.getObjectById("unityPlayer");
}
return null;
}
if (typeof unityObject != "undefined") {
unityObject.embedUnity("unityPlayer", "/webplayers/NAME-OF-BUILD-TO-LOAD.unity3d", 600, 450);
}
-->
</script>
All I change is the name of: NAME-OF-BUILD-TO-LOAD.unity3d and it works fine so I imagine you can swap it out dynamically using javascript, easily.
What if there was a Unity app that worked on IOS and Android and allowed people who had navigated to a Webplayer game to play that game or a demo version of that game with a link to the appstore version?
Ah you can’t do browser on mobile, I wish. heh I’ve tried. It won’t even install the unity plugin.
But could your own app be associated with a file type, and prompt a mobile users without it to download it then it would pop-up and run the provided scene data.
It’s what all the other apps are doing, Facebook, Forum Apps, ect they popup and give you the option to run an app as opposed to a browser based experience.
Then Unity could provide a HTML5 export and users could select the level of the experience they desire?