C# Class UISpriteInspector, TheUnseen

Inheritance: UIWidgetInspector
Show file Open project: henryj41043/TheUnseen Class Usage Examples

Public Methods

Method Description
HasPreviewGUI ( ) : bool

All widgets have a preview.

OnPreviewGUI ( Rect rect, GUIStyle background ) : void

Draw the sprite preview.

Protected Methods

Method Description
DrawCustomProperties ( ) : void

Sprites's custom properties based on the type.

ShouldDrawProperties ( ) : bool

Draw the atlas and sprite selection fields.

Private Methods

Method Description
OnSelectAtlas ( Object obj ) : void

Atlas selection callback.

SelectSprite ( string spriteName ) : void

Sprite selection callback function.

Method Details

DrawCustomProperties() protected method

Sprites's custom properties based on the type.
protected DrawCustomProperties ( ) : void
return void

HasPreviewGUI() public method

All widgets have a preview.
public HasPreviewGUI ( ) : bool
return bool

OnPreviewGUI() public method

Draw the sprite preview.
public OnPreviewGUI ( Rect rect, GUIStyle background ) : void
rect Rect
background GUIStyle
return void

ShouldDrawProperties() protected method

Draw the atlas and sprite selection fields.
protected ShouldDrawProperties ( ) : bool
return bool