Search Unity

alert() / addOnClickCallback problem

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

  1. GKiernozek

    GKiernozek

    Joined:
    Nov 16, 2013
    Posts:
    36
    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:
    36
    it works, thanks :)
     
unityunity