A* Pathfinding Project  4.1.14
The A* Pathfinding Project for Unity 3D
FadeArea Class Reference

Editor helper for hiding and showing a group of GUI elements. More...

Detailed Description

Editor helper for hiding and showing a group of GUI elements.

Call order in OnInspectorGUI should be:

  • Begin
  • Header/HeaderLabel (optional)
  • BeginFade
  • [your gui elements] (if BeginFade returns true)
  • End

Public Member Functions

 FadeArea (bool open, Editor editor, GUIStyle areaStyle, GUIStyle labelStyle=null)
void Begin ()
bool BeginFade ()
void End ()
void Header (string label)
void Header (string label, ref bool open)
void HeaderLabel (string label)

Public Attributes

bool open
 Is this area open. More...

Static Public Attributes

static bool fancyEffects

Private Member Functions

void Tick ()

Static Private Member Functions

static float Hermite (float start, float end, float value)
 Hermite spline interpolation. More...

Private Attributes

const float animationSpeed = 100f
GUIStyle areaStyle
Editor editor
GUIStyle labelStyle
Rect lastRect
float lastUpdate
float value
bool visible

Constructor & Destructor Documentation

◆ FadeArea()

FadeArea ( bool  open,
Editor  editor,
GUIStyle  areaStyle,
GUIStyle  labelStyle = null 

Member Function Documentation

◆ Begin()

void Begin ( )

◆ BeginFade()

bool BeginFade ( )

◆ End()

void End ( )

◆ Header() [1/2]

void Header ( string  label)

◆ Header() [2/2]

void Header ( string  label,
ref bool  open 

◆ HeaderLabel()

void HeaderLabel ( string  label)

◆ Hermite()

static float Hermite ( float  start,
float  end,
float  value 

Hermite spline interpolation.

◆ Tick()

void Tick ( )

Member Data Documentation

◆ animationSpeed

const float animationSpeed = 100f

◆ areaStyle

GUIStyle areaStyle

◆ editor

Editor editor

◆ fancyEffects

bool fancyEffects

◆ labelStyle

GUIStyle labelStyle

◆ lastRect

Rect lastRect

◆ lastUpdate

float lastUpdate

◆ open

bool open

Is this area open.

This is not the same as if any contents are visible, use BeginFade for that.

◆ value

float value

◆ visible

bool visible

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