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 have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

pause menu android 5.0

Discussion in '2D' started by driverjcs, Mar 13, 2015.

  1. driverjcs

    driverjcs

    Joined:
    Mar 13, 2015
    Posts:
    2
    I have a script that calls a pause canvas when I press the android menu button. It works for versions before 5.0. Any help will be greatly appreciated. when you press the menu button in 5.0 it sets the time scale to 0 but does not call the canvas.

    upload_2015-3-12_20-57-45.png
     
  2. alex_hajdu

    alex_hajdu

    Joined:
    Nov 10, 2013
    Posts:
    32
    try to switch those 2 lines of code, first call canvas then set timeScale to 0
    also be sure you put you have your Canvas is attached to your script
     
  3. driverjcs

    driverjcs

    Joined:
    Mar 13, 2015
    Posts:
    2
    That did not work. It works in older version of android just not 5.0. Any information will be greatly appreciated.