private void ShowPreview() { var addon = WindowUtilities.GetAddon("DevicePreview"); if (addon != null) { addon.Show(() => { if (this.previewScreen != null) { GameObject.DestroyImmediate(this.previewScreen.gameObject); } }); } else { Debug.LogWarning("No Addon Found: DevicePreview"); } /* * this.gameView = FlowGameViewWindow.CreateInstance<FlowGameViewWindow>(); * this.gameView.rootWindow = this.rootWindow; * this.gameView.Focus(); * this.gameView.Repaint(); * this.gameView.ShowView(this.previewScreen, () => { * * if (this.previewScreen != null) GameObject.DestroyImmediate(this.previewScreen.gameObject); * * });*/ }