A* Pathfinding Project
3.6.1
The A* Pathfinding Project for Unity 3D
|
Handles fading effects and also some custom GUI functions such as LayerMaskField. More...
Handles fading effects and also some custom GUI functions such as LayerMaskField.
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) |
void | ClearFadeAreaStack () |
Make sure the stack is cleared at the start of a frame. | |
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 | 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 bool | UnityTagMaskList (GUIContent label, bool foldout, List< string > tagMask) |
static int | UpDownArrows (GUIContent label, int value, GUIStyle labelStyle, GUIStyle upArrow, GUIStyle downArrow) |
Static Public Attributes | |
static GUIStyle | defaultAreaStyle |
static GUIStyle | defaultLabelStyle |
static Editor | editor |
Global info about which editor is currently active. | |
static bool | fancyEffects = true |
static long | lastUpdateTick |
static string[] | layerNames |
static List< int > | layerNumbers |
static List< string > | layers |
static GUIStyle | stretchStyle |
static GUIStyle | stretchStyleThin |
Private Attributes | |
Rect | fadeAreaRect |
Dictionary< string, FadeArea > | fadeAreas |
Stack< FadeArea > | fadeAreaStack |
Rect | lastAreaRect |
Static Private Attributes | |
static bool | fade = true |
static float | speed = 6 |
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 | ||
) |
|
static |
Begin horizontal indent for the next control.
Fake "real" indent when using EditorGUIUtility.LookLikeControls.
Forumula used is 13+6*EditorGUI.indentLevel
|
static |
void ClearFadeAreaStack | ( | ) |
Make sure the stack is cleared at the start of a frame.
|
static |
bool DrawID | ( | string | id | ) |
void EndFadeArea | ( | ) |
|
static |
|
static |
|
static |
Returns width of current editor indent.
Unity seems to use 13+6*EditorGUI.indentLevel in U3 and 15*indent - (indent > 1 ? 2 : 0) or something like that in U4
|
static |
|
static |
Displays a LayerMask field.
label | Label to display |
showSpecial | Use the Nothing and Everything selections |
selected | Current LayerMask |
void RemoveID | ( | string | id | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Global info about which editor is currently active.
|
staticprivate |
|
private |
|
private |
|
private |
|
static |
|
private |
|
static |
|
static |
|
static |
|
static |
|
staticprivate |
|
static |
|
static |