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.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Uncaught exception with addOnClickCallback

Discussion in 'Project Tiny' started by Anton_hc, Mar 25, 2019.

  1. Anton_hc

    Anton_hc

    Joined:
    Jul 6, 2012
    Posts:
    15
    Code (CSharp):
    1. let rightShipButton = this.world.getEntityByName("RightShip");
    2. if (this.world.exists(rightShipButton)) ut.UIControls.UIControlsService.addOnClickCallback(this.world, rightShipButton, () =>
    3. {
    4.  SelectShipGUI.RightShip();
    5. });
    Someone know, what i do wrong? There is no issue with development build, but release build not work.

    uncaught exception: abort(10)
    at abort@http://localhost:19050/game.js:1:5105
    xu@http://localhost:19050/game.js:1:1
    Lz@http://localhost:19050/game.js:1:1
    fh@http://localhost:19050/game.js:1:1
    PL@http://localhost:19050/game.js:1:1
    fG@http://localhost:19050/game.js:1:1
    Nm@http://localhost:19050/game.js:1:1
    AF@http://localhost:19050/game.js:1:1 ut.UIControls.UIControlsService.addOnClickCallback@http://localhost:19050/game.js:1:992948
    r.prototype.OnUpdate@http://localhost:19050/game.js:1:1764243
    t.prototype._MakeSystemFn/e@http://localhost:19050/game.js:1:1125538
    ASM_CONSTS<@http://localhost:19050/game.js:1:9969
    _emscripten_asm_const_iiii@http://localhost:19050/game.js:1:10454
    _C@http://localhost:19050/game.js:1:1
    jD@http://localhost:19050/game.js:1:1
    Pb@http://localhost:19050/game.js:1:1
    $U@http://localhost:19050/game.js:1:1
    fP@http://localhost:19050/game.js:1:1
    bJ@http://localhost:19050/game.js:1:1
    EU@http://localhost:19050/game.js:1:1
    Zz@http://localhost:19050/game.js:1:1
    RS@http://localhost:19050/game.js:1:1
    Xo@http://localhost:19050/game.js:1:1
    e@http://localhost:19050/game.js:1:46505
     
  2. AAK_Lebanon

    AAK_Lebanon

    Joined:
    May 30, 2015
    Posts:
    77