UI Button don't work

Hi, i have problem with UI Button, here are my script:

using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class Ataki : MonoBehaviour {

    public void test()
    {
        Debug.Log ("Button Clicked");
    }
}

and screen:

When i click on this button nothing happen.

Is the button and the Ataki script always in the scene or do you load at least one of them dynamically?

yes, they are on scene all of time.

This doesn’t work in play mode?

Yes i tested in play mode, and compiled to .exe the same resoult

Did you try it in an empty scene, where you only added the button and then set it up like that or are you doing it in an already existing scene?
Do you have an event system, a standalone input module, …?

1 Like

Thanks man! I has not event system and it was the reason. Thanks again