A* Pathfinding Project  4.1.8
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 
)
staticprivate

Hermite spline interpolation.

◆ Tick()

void Tick ( )
private

Member Data Documentation

◆ animationSpeed

const float animationSpeed = 100f
private

◆ areaStyle

GUIStyle areaStyle
private

◆ editor

Editor editor
private

◆ fancyEffects

bool fancyEffects
static

◆ labelStyle

GUIStyle labelStyle
private

◆ lastRect

Rect lastRect
private

◆ lastUpdate

float lastUpdate
private

◆ 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
private

◆ visible

bool visible
private

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