method openSceneAndWait

void openSceneAndWait(string boxURL,object parentScene,string sceneName,object paramsDictionary);

Argumente

Zurückgegebener Wert

This method opens a given box file as a modal window and waits until the window is closed before returning. After the scene is closed, the user could look at keys in the dictionary to get return values. The dictionary can also use the following built-in keys:
function onLaunchSample()
{
    var params = null;
    try
    {
        params = shell.serviceManager.basics.dictionary;
        // Add items to dictionary for the new scene to access.
    }
    catch (e)
    {
        params = null;
    }

    if (params)
    {
        var boxFile = "../content/sample.box";
        shell.openSceneAndWait(boxFile, scene, "Sample", params);
        // Could get values out of the dictionary that the scene had set.
        // This is how you would get return values.
    }
}