How to Code for android phone always stay awake?

Hi! Could anyone tell how to prevent android phone from going sleep by using code?
thank.

All you had to do was simply search the Unity Script Reference for the keyword ‘sleep’:

Screen.sleepTimeout = (int)SleepTimeout.NeverSleep;

thanks! that really help me