GUI.depth Manual     Reference     Scripting  
Scripting > Runtime Classes > GUI
GUI.depth

static var depth : int

Description

The sorting depth of the currently executing GUI behaviour.

Set this to determine ordering when you have different scripts running simultaneously.