I have a xml with various scenes and hotspots. I currently have functionality to add hotspots dynamically. However, how can I have it so that my dynamically added hotspot stays in the scene I added it to, so that when I go to a different scene, I can't see the hotspot, but when I go back it's there again?
Sample action that I'm currently using:
Code
<action name="addlocation">
removelocation(get(location));
removehotspot(get(location));
addhotspot(get(location));
set(hotspot[get(location)].url,/location.png);
set(hotspot[get(location)].ath,get(view.hlookat));
set(hotspot[get(location)].atv,get(view.vlookat));
set(hotspot[get(location)].height,30);
set(hotspot[get(location)].width,30);
set(hotspot[get(location)].edge,center);
js(addPoint(get(location), get(view.hlookat), get(view.vlookat)));
</action>
Display More