Unity & SwiftUI – Bridging the Divide
summary
Unity exports a project as a library that embeds a ~100MB Objective‑C++ framework and requires passing C argc/argv into the framework via NSProcessInfo, so the integration builds an app delegate to call runEmbedded, creates a UIHostingController swift ui overlay layered over a full‑screen Unity view, and wires communication both ways using an extern unity_ready callback and the framework method UnitySendMessage with UTF‑8 string (JSON) payloads. The demo shows a button roundtrip and an alert, proving the bridge works. export as library
AI-written summary · about
chapters (14)
- 0:00Start
- 4:05Hybrid Environment
- 5:45Export as Library
- 6:16Swift Ui
- 6:48Integrating Unity
- 10:05Build Your Unity Experience
- 11:59Xcode
- 13:23Hosting Controllers
- 14:04Workspace Setup
- 17:41App Delegate
- 24:07Overlay View
- 25:58Communication
- 29:58Demo
- 39:37Library Export
related talks
14mIntegrating SwiftUI & UI Kit
41mMulti Platform Development, the Swiftui way
33mCombining SwiftUI and UIKit, AppClips and Widgets
27mReusable UI components with SwiftUI
17mBuilding and Launching a Modern SwiftUI SDK
49mWhy SwiftUI?
22mLaunching your app the swiftui way
30mEvolving Existing Projects With SwiftUI
