Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

UnityPlayer.SendMessage for Android

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

  1. ina

    ina

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