A
A
Anton Vertov2017-07-27 13:08:51
Unity
Anton Vertov, 2017-07-27 13:08:51

How to prevent screen fading on Android/iOS?

I am making a game for mobile devices. It is necessary that the screen does not fade for 3 minutes. Can you please tell me how to implement this for Android and iOS?
Thank you very much in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Amfore, 2017-07-27
@1Frosty

From the Unity documentation:

// Disable screen dimming
  Screen.sleepTimeout = SleepTimeout.NeverSleep;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question