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

How to detect the user turn off the screen in mobile

Discussion in 'Scripting' started by StandAloneC, May 13, 2015.

  1. StandAloneC

    StandAloneC

    Joined:
    Oct 21, 2013
    Posts:
    4
    Is there any script that detecting the user turn off the screen manually in Mobile phone in Unity?
     
  2. StandAloneC

    StandAloneC

    Joined:
    Oct 21, 2013
    Posts:
    4
    I would like to write a script that when the screen of mobile phone is on, do A, otherwise, do B