Search Unity

SendMessage not called

Discussion in 'Android' started by neufoctobre, Nov 22, 2018.

  1. neufoctobre

    neufoctobre

    Joined:
    Jun 20, 2015
    Posts:
    94
    Hi there,

    I become mad about a problem about sendMessage. I'm also using NGUI

    I have one script calling a sendMessage("OnClick") to NGUI UIButton. The gameObject where the UIButton is attached have some Methods and NGUI UIPlayAnimation attached on him.

    The method of UIButton are not called but the UIPlayAnimation attached to the gameObject are called. I have other button and a previous project with exact same code and working well, but One of my buttons method are not called. I found a solution by adding this line :

    EventDelegate.Execute (Button.onClick);

    This is driving me crazy, can't found why it's not working even any idea ....

    Thanks !