swift-unity icon indicating copy to clipboard operation
swift-unity copied to clipboard

Ending up with a black screen

Open mbogh opened this issue 6 years ago • 1 comments

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: screen shot 2018-05-31 at 09 16 02

Any help would be appreciated :)

mbogh avatar May 31 '18 07:05 mbogh

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

mikehobi avatar Sep 27 '18 20:09 mikehobi