EditorGUI.LayerField Manual     Reference     Scripting  
Scripting > Editor Classes > EditorGUI
EditorGUI.LayerField

static function LayerField (position : Rect, layer : int, style : GUIStyle = EditorStyles.popup) : int

static function LayerField (position : Rect, label : string, layer : int, style : GUIStyle = EditorStyles.popup) : int

static function LayerField (position : Rect, label : GUIContent, layer : int, style : GUIStyle = EditorStyles.popup) : int

Parameters

NameDescription
position Rectangle on the screen to use for the field.
label Optional label in front of the field.
layer The layer shown in the field.
style Optional GUIStyle.

Returns

int - The layer selected by the user.

Description

Make a layer selection field.