C# Class UnityContrib.UnityEditor.EditorGUIEx

Provides helper methods for working with the T:UnityEngine.GUI and T:UnityEditor.EditorGUI classes.
Show file Open project: UnityContrib/framework Class Usage Examples

Public Methods

Method Description
ChangeCheck ( System.Action content ) : bool

Check if any control was changed inside a block of code.

DrawRectangle ( Rect rect, Color color ) : void

Draws a rectangle at the spcified rect with the specified color.

Method Details

ChangeCheck() public static method

Check if any control was changed inside a block of code.
public static ChangeCheck ( System.Action content ) : bool
content System.Action /// The callback to invoke between start and end change check. ///
return bool

DrawRectangle() public static method

Draws a rectangle at the spcified rect with the specified color.
public static DrawRectangle ( Rect rect, Color color ) : void
rect UnityEngine.Rect /// The position and size of the rectangle. ///
color Color /// The color of the rectangle. ///
return void