UnityWidget constructor

UnityWidget({
  1. Key? key,
  2. required UnityCreatedCallback onUnityCreated,
  3. UnityMessageCallback? onUnityMessage,
  4. bool fullscreen = false,
  5. bool enablePlaceholder = false,
  6. bool runImmediately = false,
  7. bool unloadOnDispose = false,
  8. bool printSetupLog = true,
  9. UnityUnloadCallback? onUnityUnloaded,
  10. Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
  11. Widget? placeholder,
  12. bool? useAndroidViewSurface = false,
  13. UnitySceneChangeCallback? onUnitySceneLoaded,
  14. int uiLevel = 1,
  15. BorderRadius borderRadius = BorderRadius.zero,
  16. TextDirection? layoutDirection,
  17. 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,
});