A* Pathfinding Project  3.1.4
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Enumerations Properties Groups Pages
EditorGUILayoutx Class Reference

Handles fading effects and also some custom GUI functions such as LayerMaskField. More...

Classes

class  FadeArea
 

Public Member Functions

FadeArea BeginFadeArea (bool open, string label, string id)
 
FadeArea BeginFadeArea (bool open, string label, string id, GUIStyle areaStyle)
 
FadeArea BeginFadeArea (bool open, string label, string id, GUIStyle areaStyle, GUIStyle labelStyle)
 
FadeArea BeginFadeArea (bool open, string id)
 
FadeArea BeginFadeArea (bool open, string id, float minHeight)
 
FadeArea BeginFadeArea (bool open, string id, float minHeight, GUIStyle areaStyle)
 
bool DrawID (string id)
 
void EndFadeArea ()
 
void RemoveID (string id)
 

Static Public Member Functions

static void BeginIndent ()
 Begin horizontal indent for the next control.
 
static float Berp (float start, float end, float value)
 
static float Coserp (float start, float end, float value)
 
static void EndIndent ()
 End indent.
 
static float Hermite (float start, float end, float value)
 
static int IndentWidth ()
 Returns width of current editor indent.
 
static LayerMask LayerMaskField (string label, LayerMask selected)
 
static LayerMask LayerMaskField (string label, LayerMask selected, bool showSpecial)
 Displays a LayerMask field.
 
static void MenuCallback (System.Object ob)
 
static void SetTagField (GUIContent label, ref Pathfinding.TagMask value)
 
static float Sinerp (float start, float end, float value)
 
static int SingleTagField (string label, int value)
 
static void TagsMaskField (GUIContent changeLabel, GUIContent setLabel, ref Pathfinding.TagMask value)
 
static int UpDownArrows (GUIContent label, int value, GUIStyle labelStyle, GUIStyle upArrow, GUIStyle downArrow)
 

Public Attributes

Dictionary< string, FadeAreafadeAreas
 
Stack< FadeAreastack
 

Static Public Attributes

static int currentDepth = 0
 
static int currentIndex = 0
 
static GUIStyle defaultAreaStyle
 
static GUIStyle defaultLabelStyle
 
static Editor editor
 
static bool fade = true
 
static bool fancyEffects = true
 
static bool isLayout = false
 
static long lastUpdateTick
 
static string[] layerNames
 
static List< int > layerNumbers
 
static List< string > layers
 
static float speed = 6
 
static GUIStyle stretchStyle
 
static GUIStyle stretchStyleThin
 

Private Attributes

Rect fadeAreaRect
 
Rect lastAreaRect
 

Detailed Description

Handles fading effects and also some custom GUI functions such as LayerMaskField.

Member Function Documentation

static void BeginIndent ( )
static

Begin horizontal indent for the next control.

Fake "real" indent when using EditorGUIUtility.LookLikeControls.
Forumula used is 13+6*EditorGUI.indentLevel

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void EndIndent ( )
static

End indent.

Actually just a EndHorizontal call.

See Also
BeginIndent

+ Here is the caller graph for this function:

static int IndentWidth ( )
static

Returns width of current editor indent.

Unity seems to use 13+6*EditorGUI.indentLevel

+ Here is the caller graph for this function:

static LayerMask LayerMaskField ( string  label,
LayerMask  selected,
bool  showSpecial 
)
static

Displays a LayerMask field.

Parameters
labelLabel to display
showSpecialUse the Nothing and Everything selections
selectedCurrent LayerMask
Note
Unity 3.5 and up will use the EditorGUILayout.MaskField instead of a custom written one.

The documentation for this class was generated from the following file: