Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
    Anybody mind checking this out? My AndroidJavaCLass isn't working for communication between Unity and Flutter. snowballdigital/flutter-unity-view-widget#142
    @skypu3 hey there! Thats work pretty good at any stable channel
    Jatin Pawar

    Hi there folks,
    First of all this is an amazing plugin and opens up a hell lot of possibilities. Kudos to devs.
    I want to work on AR so used the Flutter-Unity ARFoundation example and after a bit of hassle , it worked like charm. :)

    I have been working in Unity for quite some time and have quite an idea about how it works.But I am kinda new to the flutter world.
    I basically want use the Flutter UI to pass data to Unity and then Unity to work on based of the inputs. It will be really great if you can give me an high level view of the communication happens. For example if I want to make a simple AR app with image scroll at the bottom of the screen and the user can slide an(through flutter UI) will be passed to Unity so that we can spawn the selected object.

    Once again, kudos to the devs. I hope to contribute to this widget and make it better ;)

    Ilya Sayapin
    Hey guys, does anyone have the same issue snowballdigital/flutter-unity-view-widget#145 ?
    Hey, guys! I have a question if that's ok :) So, I want to create pretty large catalogue app with lots of 3d models (about 20-30) What would be the best way to go about it using 'flutter-unity'? I was thinking maybe I could pass path as a string to 3d model via navigator argument (widget with 'flutter-unity' is on the destination screen), but I don't know if that's possible (or even advisable) to do. Or maybe just add bunch of 3d models inside unity project and show/hide them via arguments. But again - I don't know if that's possible. So.. I would appreciate any form of advice or hint about what to do here :)
    @FiddlePlus , You could use to embed your Unity module into your flutter app, save all the 3D models as different scenes, and then pass arguments to launch whichever scene you want to launch via flutter_unity_widget's method - postMessage(String gameObject, methodName, message).

    @FiddlePlus , You could use to embed your Unity module into your flutter app, save all the 3D models as different scenes, and then pass arguments to launch whichever scene you want to launch via flutter_unity_widget's method - postMessage(String gameObject, methodName, message).

    I'll try it, thanks! And report back with results!

    Is there any way to share unity instance from screen to screen? When I try to achieve this, I get crash on resume unity... Any one do this?

    FAILURE: Build failed with an exception.

    • What went wrong:
      Could not determine the dependencies of task ':app:preDebugBuild'.

      Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
      Could not find :UnityAds:.
      Required by:

         project :app > project :flutter_unity_widget > project :UnityExport

      Could not find :UnityAdsAndroidPlugin:.
      Required by:

         project :app > project :flutter_unity_widget > project :UnityExport
    • Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    Anyone help me
    Giovanno Warli
    Hi guys! I have a favor if that's ok! So I am new at this and I have been really confused to how to communicate between flutter and unity. Is there anyone willing to share their example source code using flutter & unity? Just for me to understand the code and how it communicates between each other. Really appreciate it guys if its not a hassle. Thank you!

    Hi guys.

    Can you help me with one thing? How can I return the system buttons and status bar after closing the screen with a UnityWidget?

    I'm talking about this issue.
    "Using AR will make the activity run in full screen (hiding status and navigation bar)."

    Prince Khatri

    Running Gradle task 'assembleDebug'...
    C:\Users\Home\Desktop\all same\flutter-unity-view-widget-master\flutter-unity-view-widget-master\example\android\app\src\main\java\io\flutter\plugins\ error: package com.rexraphael.flutterunitywidget does not exist
    1 error

    FAILURE: Build failed with an exception.

    • What went wrong:
      Execution failed for task ':app:compileDebugJavaWithJavac'.

      Compilation failed; see the compiler error output for details.

    • Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    • Get more help at

    BUILD FAILED in 20s
    Exception: Gradle task assembleDebug failed with exit code 1

    Hey i am getting this error can anyone help me solve it
    Raju Rastogi
    Hi guys
    When I try to export unity project to flutter: I am running into this issue, Exception: Build failed
    Build.DoBuildIOS () (at Assets/Editor/Build.cs:94)
    Can anyone help me with this?
    I am following this, to use unity with flutter:
    Aman Kumar
    Hi everyone, can someone show how can we add the .aar modules to the projects? i could add "unity-classes.jar" file by using right click -> add as library. But, there is no such option other than "make module" which does nothing when clicked.
    Please help /\
    Jatin Pawar

    Hi @AksAman,
    Kindly have a look at snowballdigital/flutter-unity-view-widget#49

    If still, you are not able to get started, then kindly message here and I will try to help you out.
    As per your specific question, to include the .aar module related to AR, go to File->New Module-> Import .jar/.aar-><Browse and select your .aar file>.
    This will make import the specific .aar and will make a separate folder for it. Make sure you drag and drop the newly created folder under the android folder.

    Hope this helps :)

    Aman Kumar
    Thanks @Jatin-Pawar for the reply, but i did try the mentioned methods already. Android studio gave me this error dialog box :
    Rebar Ahmad

    Hey guys, I already read every issue related to iOS, but somehow I am not able to build for iOS 13:

    Undefined symbols for architecture arm64:
    "_onUnityMessage", referenced from:
    _NativeAPI_onUnityMessage_mD44345499E1125EA37D67E2892D48D89B448B012 in Assembly-CSharp.o
    (maybe you meant: _NativeAPI_onUnityMessage_mD44345499E1125EA37D67E2892D48D89B448B012)
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    I am trying for weeks to build for ios
    I just want to setup plain ios, not AR
    Giovanno Warli
    Hey @Ahmadre I am experiencing the same problem. Idk how to solve it, any ideas?
    Giovanno Warli
    Actually @Ahmadre, for this, all you have to do is upgrade your Unity Version, I tried using 2020.1.1.1f1
    and it worked
    hey everyone! i just want to start using unity and flutter and what to know couple of things:
    1.let's say in my unity project i am using raycasting- will it work in flutter app? 2. how does it work to send data from unity to flutter?
    i get this problem:[FATAL:flutter/shell/platform/android/] Check failed: CheckException(env).
    my app crashes on emulator but work on physical device how can i make it work on both?
    Giovanno Warli
    Hey @gbo999 ,
    1. It will work. 2. It sends data thru messages. 3. I think it only can run on physical device, it cant run on emulators
    Rex Raphael
    @/all I have an unpublished version of the library which fixes alot of your issue. Its a complete rewrite and sponsored by a Company that has interest in the library. Hopefully in a few days I will publish it and so you guys be patient. It has alot of unity exposed APIs abd very stable with easier integration
    In the next release you won't have to import unity classes as a standalone module
    Vyankatesh Dasari
    Hello, I'm trying a AR in unity. So for best GUI experience i want to use flutter interaction in unity so how i can add flutter support to unity . I'm using Unity-2019.4.9f1 , their are some errors in running basic flutter app : Error: PowerShell executable not found.
    Either pwsh.exe or PowerShell.exe must be in your PATH.
    Christian Sigl
    @juicycleff : any news about the rewritten library?
    Hey guys! Any news related to the new library? I am also having problems with popping the unity context and i am interested if i shall wait for the new package release.
    Nice, cant wait for the new version, else I might need to create a new one myself too
    Tudor Axinte
    lost 3 days trying to integrate this piece of crap
    I might as well build everything in unity instead
    A problem occurred evaluating project ':flutter_unity_widget'.
    peak retardation
    Hey just wanted to thank you guys for your hard work. flutter-unity-view-widget 2.0 is just what I wanted. I managed to integrate and test today. Fantastic job - navigation Flutter - Unity works like charm now.
    P.S. also much better with new unity library approach, instead of manually inserting new projects for each new library
    Jatin Pawar
    Hey @mihaelpuljak
    I am happy to hear that you were able to test it out and it worked. I am also trying to play around with it, it would be really helpful if you can guide me to the resources/steps you followed to get the examples working.
    PS: I will be developing on Android.
    Looking forward to hearing from you @mihaelpuljak
    Hey, is there anybody who has the same issue? juicycleff/flutter-unity-view-widget#211