I define skin_settings in tour.xml first (and removed that from vtourskin.xml entirely). I then included vtourskin.xml and then load the first scene. So:
TOUR.XML
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
|
<skin_settings
webvr="true"
/>
<include url="skin/vtourskin.xml" />
<action name="startup" autorun="onstart">
if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
loadscene(get(startscene), null, MERGE);
</action>
<scene name=.............>
</scene>
|
VTOURSKIN.XML
|
Quellcode
|
1
|
<include url="../plugins/webvr.xml" devices="html5" if="skin_settings.webvr == true"/>
|
With the above code webvr.xml does not load. But change it to:
|
Quellcode
|
1
|
<include url="../plugins/webvr.xml" devices="html5" if="skin_settings.webvr"/>
|
Now webvr.xml loads -- and if I set skin_setting.webvr="false", webvr.xml does not load.
BTW, if I include vtourskin.xml first, before defining skin_settings, I get the same results. I assume this is because either way it is before the first pano is loaded?