Skip to content

Instantly share code, notes, and snippets.

@eunjin3786
Created February 23, 2022 09:15
Show Gist options
  • Save eunjin3786/ae0c6945f4c697ed44ddf2c157cdcb78 to your computer and use it in GitHub Desktop.
Save eunjin3786/ae0c6945f4c697ed44ddf2c157cdcb78 to your computer and use it in GitHub Desktop.
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
...
UnityManager.shared.setHostMainWindow(self.window)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment