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.

alert() / addOnClickCallback problem

Discussion in 'Project Tiny' started by GKiernozek, Dec 21, 2018.

  1. GKiernozek

    GKiernozek

    Joined:
    Nov 16, 2013
    Posts:
    37
    Hello,

    I have a problem when calling function:

    ut.UIControls.UIControlsService.addOnClickCallback(this.world, tmp_buttonExample, () => {
    alert("U've clicked the button!");
    });

    And this is what I see in the console:
    upload_2018-12-21_8-19-52.png

    This happens only on release, on development it works fine. Does anybody knows what can be wrong in there?
     
  2. Nkon

    Nkon

    Unity Technologies

    Joined:
    Jun 12, 2017
    Posts:
    65
    GKiernozek likes this.
  3. GKiernozek

    GKiernozek

    Joined:
    Nov 16, 2013
    Posts:
    37
    it works, thanks :)