File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Sources/UBKit/Files/Xcode Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ extension File {
6161 OTHER_CFLAGS: $(inherited) -DINIT_SCRIPTING_BACKEND=1 -fno-strict-overflow -DRUNTIME_IL2CPP=1
6262 CLANG_CXX_LANGUAGE_STANDARD: c++11
6363 CLANG_CXX_LIBRARY: libc++
64- SWIFT_OBJC_BRIDGING_HEADER: UnityBuildKit /UnityBridge/UnityBridge.h
64+ SWIFT_OBJC_BRIDGING_HEADER: \( projectName ) /UnityBridge/UnityBridge.h
6565 CLANG_ENABLE_MODULES: NO
6666 CLANG_WARN_BOOL_CONVERSION: NO
6767 CLANG_WARN_CONSTANT_CONVERSION: NO
Original file line number Diff line number Diff line change @@ -36,10 +36,9 @@ extension File {
3636 override func viewDidAppear(_ animated: Bool) {
3737 super.viewDidAppear(animated)
3838
39- DispatchQueue.main.asyncAfter(deadline: DispatchTime.now()+2) {
40- let appDelegate = UIApplication.shared.delegate as! AppDelegate
41- appDelegate.startUnity()
42-
39+ let appDelegate = UIApplication.shared.delegate as! AppDelegate
40+ appDelegate.startUnity()
41+ DispatchQueue.main.asyncAfter(deadline: DispatchTime.now()+5) {
4342 if let newUnityView = UnityGetGLView() {
4443 newUnityView.translatesAutoresizingMaskIntoConstraints = false
4544 self.view.addSubview(newUnityView)
You can’t perform that action at this time.
0 commit comments