A* Pathfinding Project
3.8
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 void | EndIndent () |
End indent. | |
static float | Hermite (float start, float end, float value) |
static LayerMask | LayerMaskField (string label, LayerMask selected) |
Displays a LayerMask field. | |
static int | TagField (string label, int value) |
static void | TagMaskField (GUIContent label, int value, System.Action< int > callback) |
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 Private Member Functions | |
static int | IndentWidth () |
Returns width of current editor indent. | |
Private Attributes | |
readonly bool | fade = true |
Dictionary< string, FadeArea > | fadeAreas |
Stack< FadeArea > | fadeAreaStack |
const float | speed = 8 |
Static Private Attributes | |
static long | lastUpdateTick |
static string[] | layerNames |
static List< string > | layers |
static string[] | tagNamesAndEditTagsButton |
Tag names and an additional 'Edit Tags...' entry. | |
static double | timeLastUpdatedTagNames |
Last tiem tagNamesAndEditTagsButton was updated. | |
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
void ClearFadeAreaStack | ( | ) |
Make sure the stack is cleared at the start of a frame.
bool DrawID | ( | string | id | ) |
void EndFadeArea | ( | ) |
|
static |
|
static |
|
staticprivate |
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 |
Displays a LayerMask field.
label | Label to display |
selected | Current LayerMask |
void RemoveID | ( | string | id | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Global info about which editor is currently active.
|
private |
|
private |
|
private |
|
static |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
|
staticprivate |
Tag names and an additional 'Edit Tags...' entry.
Used for SingleTagField
|
staticprivate |
Last tiem tagNamesAndEditTagsButton was updated.
Uses EditorApplication.timeSinceStartup