swift-unity
swift-unity copied to clipboard
uesr interaction disabled
calling
currentUnityController = UnityAppController()
currentUnityController.application(application, didFinishLaunchingWithOptions: launchOptions)
seems to disable all user input. Not even adding the UnityView or anything, just telling the UnityAppController
that the application has launched prevents touches from being sent.
It probably has to do with unity initializing on the main thread. From my tests touches are received but the callbacks are fired 5-6 seconds later when main thread is free and unity finished init, I doubt that it has to do with the project setup.
Has somebody ever solved this problem?
Any success in fixing this issue?
@VladKorzun yes, I manage to solved it. Checkout my answer on this SO thread.
If you still have problem, feel free to reply.
@setoelkahfi thanks for a quick reply. Unfortunately, it still creates a window in the foreground that takes all interactions. Managed to solve it by removing all window creation logic from Unity generated code and replace the window with actual app window.
Glad that you solved it @VladKorzun . If you don't mind, please share your solution as an answer to my SO thread.
@setoelkahfi done!
Neither of these solved it for me
@WyattMufson do you have a UIWindow instance in front of your UI when you inspect view hierarchy?