swift-unity
swift-unity copied to clipboard
Ending up with a black screen
Hi,
Thanks for you effort with this, it has been a great inspiration and help :)
After updating to Unity 2017.2.2 from Unity 5.4, we end up with a black screen. As shown below in the View Hierarchy debugger:
Any help would be appreciated :)
Hey, I was having a similar issue. I'm not sure if your issue is the same, but the "UnityReady" notification didn't seem to be firing.
Could you try calling showUnitySubView()
directly after appDelegate.startUnity()
// in viewDidLoad()
// Start unity
if let appDelegate = UIApplication.shared.delegate as? AppDelegate {
appDelegate.startUnity()
print("start")
showUnitySubView()
}
Assuming you've set it up like the demo app