Is there a way to get scene name if you know the scene index parameter?
I have come to solution with looping through all scenes:
Code
add(newsceneindex, scene[get(xml.scene)].index, %1);
for(set(i,0), i LT scene.count, inc(i),
if(scene[get(i)].index == newsceneindex,
set(newscenename, get(scene[get(i)].name));
);
);
But as it is supposed to run on every scene load when pressing next/previous buttons, i think it is pretty heavy algorithm.
Is there any easier way how to achieve this?