Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

alert() / addOnClickCallback problem

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

  1. FUBAR2077

    FUBAR2077

    Joined:
    Nov 16, 2013
    Posts:
    28
    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
    FUBAR2077 likes this.
  3. FUBAR2077

    FUBAR2077

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