UnityWidget constructor
UnityWidget({
- Key? key,
- required UnityCreatedCallback onUnityCreated,
- UnityMessageCallback? onUnityMessage,
- bool fullscreen = false,
- bool enablePlaceholder = false,
- bool runImmediately = false,
- bool unloadOnDispose = false,
- bool printSetupLog = true,
- UnityUnloadCallback? onUnityUnloaded,
- Set<
Factory< ? gestureRecognizers,OneSequenceGestureRecognizer> > - Widget? placeholder,
- bool? useAndroidViewSurface = false,
- UnitySceneChangeCallback? onUnitySceneLoaded,
- int uiLevel = 1,
- BorderRadius borderRadius = BorderRadius.zero,
- TextDirection? layoutDirection,
- bool hideStatus = false,
Implementation
UnityWidget({
Key? key,
required this.onUnityCreated,
this.onUnityMessage,
this.fullscreen = false,
this.enablePlaceholder = false,
this.runImmediately = false,
this.unloadOnDispose = false,
this.printSetupLog = true,
this.onUnityUnloaded,
this.gestureRecognizers,
this.placeholder,
this.useAndroidViewSurface = false,
this.onUnitySceneLoaded,
this.uiLevel = 1,
this.borderRadius = BorderRadius.zero,
this.layoutDirection,
this.hideStatus = false,
});