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.
  2. Unity 2022.2 is now available as the latest Tech release.
    Dismiss Notice
  3. We are making some changes to the DOTS forums.
    Dismiss Notice
  4. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

UnityPlayer.SendMessage for Android

Discussion in 'Android' started by ina, Sep 2, 2012.

  1. ina

    ina

    Joined:
    Nov 15, 2010
    Posts:
    1,029
    Does UnityPlayer.SendMessage work for Android in the latest Unity v3.5.5?

    When I call UnityPlayer.SendMessage([string],[string],[string]) in my java file and try to build with ant, I get this error:

    cannot find symbol
    [javac] symbol: variable UnityPlayer

    I have included classes.jar in build paths/classpaths
     
  2. Jessespike

    Jessespike

    Joined:
    Jul 9, 2012
    Posts:
    44
    I have been able to get UnityPlayer to SendMessages in 3.5.5.
    Don't know why it's not working for you, I assume you are importing com.unity3d.player.UnityPlayer; ?