unity_kit 0.9.1
unity_kit: ^0.9.1 copied to clipboard
Flutter plugin for Unity 3D integration — typed bridge, lifecycle management, and communication layer.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.9.1 - 2026-02-20 #
Fixed #
- Fixed
.pubignoreexcludingmodels/directory from published package, causing 159 analysis errors on pub.dev. - Removed unused
connectivity_plusdependency.
0.9.0 - 2026-02-19 #
Added #
- Gesture controls for
UnityView(gestureRecognizersparameter). - CocoaPods support for iOS integration.
- Target frame rate configuration (
UnityConfig.targetFrameRate). - Touch event handling for Android and iOS.
- Flutter Android lifecycle integration.
- Core bridge:
UnityBridge,UnityBridgeImplwith typed messaging. - Lifecycle management: 6-state machine (
uninitialized→ready→paused→resumed→disposed). - Readiness guard: auto-queue messages until Unity is ready.
- Message batching (~16ms windows, coalescing).
- Message throttling (3 strategies:
drop,keepLatest,keepFirst). - Asset streaming: manifest-based, SHA-256 integrity, caching.
- Content downloading with exponential backoff.
- Addressables and AssetBundle loaders.
UnityViewwidget with platform views (Android HybridComposition + iOS UiKitView).UnityPlaceholderloading widget.UnityLifecycleMixinfor app pause/resume handling.- Typed exception hierarchy (
UnityKitException,BridgeException,CommunicationException,LifecycleException,EngineNotReadyException). UnityConfig,UnityMessage,SceneInfomodels.- Platform abstraction via
MethodChannel. - C# Unity scripts (
FlutterBridge,MessageRouter,MessageBatcher,SceneTracker,NativeAPI,FlutterMonoBehaviour). - Comprehensive test suite (35 files, ~9000 lines).
- API documentation and asset streaming guide.