Question
My application has multiple Unity scenarios. When I exit the current scene and want to enter another scene, or enter another scene again, the scene cannot be loaded. I tried to separate the bridge from the Widget and adopt a global singleton mode. But this still doesn't work on iOS. Can you provide an example of how to manage the lifecycle of a bridge in this situation.
Flutter (Channel stable, 3.22.3, on macOS 26.4.1 25E253 darwin-arm64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.4.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2025.1)
[✓] VS Code (version 1.126.0)
[✓] Connected device (5 available)
! Error: Browsing on the local area network for Test iPad. Ensure the device is unlocked and attached with a cable or associated with the same local area
network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
unity_kit: ^2.0.0
Area
Setup / Installation
Context
No response
Question
My application has multiple Unity scenarios. When I exit the current scene and want to enter another scene, or enter another scene again, the scene cannot be loaded. I tried to separate the bridge from the Widget and adopt a global singleton mode. But this still doesn't work on iOS. Can you provide an example of how to manage the lifecycle of a bridge in this situation.
Flutter (Channel stable, 3.22.3, on macOS 26.4.1 25E253 darwin-arm64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.4.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2025.1)
[✓] VS Code (version 1.126.0)
[✓] Connected device (5 available)
! Error: Browsing on the local area network for Test iPad. Ensure the device is unlocked and attached with a cable or associated with the same local area
network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
unity_kit: ^2.0.0
Area
Setup / Installation
Context
No response