Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Using Unity as a library in native iOS/Android apps

Discussion in '2019.3 Beta' started by PavelLU, May 27, 2019.

  1. Emesent

    Emesent

    Joined:
    Nov 20, 2020
    Posts:
    3
    Is Unity as a library able to render in just a part of the screen yet? Or is it still full screen?
     
    zivmahluf likes this.
  2. Emesent

    Emesent

    Joined:
    Nov 20, 2020
    Posts:
    3
    Can It render android ui elements over the top of the unity full screen?
     
  3. nilsdr

    nilsdr

    Joined:
    Oct 24, 2017
    Posts:
    372
    Yes, thats possible
     
    Emesent likes this.
  4. WayneVenter

    WayneVenter

    Joined:
    May 8, 2019
    Posts:
    51
    I've been scanning the forum and can't find any reference to a use case where I want Unity to feed back data to the main application. We have an external device controlled by the main Android application and want to read data from the Unity "library" instance to update the external device. In short, we want to broadcast/callback/send data from the Unity library back to the Android app without closing or exiting the Unity library, is this possible?
     
    ROBYER1 likes this.
  5. Emesent

    Emesent

    Joined:
    Nov 20, 2020
    Posts:
    3
    Yes. If I remember correctly you can send message back and forth.
     
  6. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    1,420
    Is there any guide on how to use this with Flutter? I am aware of the Flutter for Unity plugin already on github which has over 113 issues and we can't get it working. It would be very nice to be able to use this with Unity as a library
     
  7. WayneVenter

    WayneVenter

    Joined:
    May 8, 2019
    Posts:
    51
    I have UnitySendMessage working fine form sending data from a Java class/function to Unity C# script, the problem is performance, I need to move a byte[] from Java to Unity, is there a way to pass a pointer to the memory address in Java to C# and update the array or texture2D in Unity?