public void Execute() { Scene scene = SceneManager.GetActiveScene(); string[] sceneInfo = GetSceneInfomation(true); string outputFile = sceneInfo[3]; if (!scene.isDirty && File.Exists(outputFile)) { Preview(); } else { Export(true); } } }