Api Script To Trigger Scene Pause

Discussion in 'Technical Discussion' started by arthas, Jan 8, 2020.

Tags:
  1. arthas

    arthas Boxer

    Joined:
    Jan 8, 2020
    Messages:
    8
    Likes Received:
    0
    Anyone know what is the script to pause the scene ?
    something like this.scene.???();
     
  2. Hanomax

    Hanomax Avid Boxer

    Joined:
    Aug 24, 2018
    Messages:
    157
    Likes Received:
    85
    Maybe if you add invisible pause button to world UI, and use something like this?
    Code:
    let button = this.ui().find('Pause_Btn')[0];
     
  3. arthas

    arthas Boxer

    Joined:
    Jan 8, 2020
    Messages:
    8
    Likes Received:
    0
    wow, nice idea, thanks
     
  4. Smart Penguins

    Smart Penguins Boxer

    Joined:
    Jan 2, 2020
    Messages:
    62
    Likes Received:
    69
    You can use:
    Code:
    this.scene().setPause(true);
     

Share This Page