Search Unity

UnityPlayer.SendMessage for Android

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

  1. ina

    ina

    Joined:
    Nov 15, 2010
    Posts:
    1,085
    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; ?