     // Use system clipboard to allow transport of text in & out from the editor
     ui.useSystemClipboard = true;
 
+}
+
+void FirstFrame()
+{
     // Create root scene node
     CreateScene();
     // Load editor settings and preferences

        return;
    }

    SubscribeToEvent("Update", "HandleUpdate");
    SubscribeToEvent(input, "ExitRequested", "HandleExitRequested");

    // Disable Editor auto exit, check first if it is OK to exit

    CreateRootUIElement();
    // Load the initial scene if provided
    ParseArguments();
    // Switch to real frame handler after initialization
    SubscribeToEvent("Update", "HandleUpdate");
}

void Stop()
