method getSceneAt

scene getSceneAt(int32 index);

Argumente

Zurückgegebener Wert

This method returns a scene for the given index. If no scene is found NULL is returned. See the scene class documentation for more information.
function onSample()
{
    var sceneCount = shell.sceneCount;
    for (i = 0; i < sceneCount; i++)
    {
        var myScene = shell.getSceneAt(i);
        if (myScene)
        {
            shell.print(myScene.url);
        }
    }
}