Hi,
I want to set hotspot.onclicks dynamically, but it doesn't work.
My scenes have a level and nextLevel (for a Menu with (sub)categories).
So the onclick-attribute should save the nextLevel for every scene/hotspot.
In "normal" mode everything works fine (with layers) but the same code in VR (with hotspots) fails.
Here every hotspot.onclick has the same value -> nextLevel of the last(!) scene.
My Code:
Code
for(set(i,0), i LT scene.count, inc(i),
...
copy(newLevel, scene[get(i)].nextLevel);
...
set(hotspot[get(hotspotname)].onclick, copy(currentLevel, newLevel); ); <!-- and start menu again with new level -->
...
);
I hope you understand my problem
(...and sorry for my bad english )