Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

alert() / addOnClickCallback problem

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

  1. FUBAR2077

    FUBAR2077

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