C# Class InvDatabaseInspector, Pharos

Inheritance: Editor
Mostra file Open project: rstaewen/Pharos Class Usage Examples

Public Methods

Method Description
DrawSprite ( Texture2D tex, Rect sprite, Material mat ) : Rect

Draw an enlarged sprite within the specified texture atlas.

DrawSprite ( Texture2D tex, Rect sprite, Material mat, bool addPadding ) : Rect

Draw an enlarged sprite within the specified texture atlas.

DrawSprite ( Texture2D tex, Rect sprite, Material mat, bool addPadding, int maxSize ) : Rect

Draw an enlarged sprite within the specified texture atlas.

OnInspectorGUI ( ) : void

Draw the inspector widget.

SelectIndex ( InvDatabase, db, InvBaseItem, item ) : void

Helper function that sets the index to the index of the specified item.

Method Details

DrawSprite() public method

Draw an enlarged sprite within the specified texture atlas.
public DrawSprite ( Texture2D tex, Rect sprite, Material mat ) : Rect
tex UnityEngine.Texture2D
sprite Rect
mat Material
return Rect

DrawSprite() public method

Draw an enlarged sprite within the specified texture atlas.
public DrawSprite ( Texture2D tex, Rect sprite, Material mat, bool addPadding ) : Rect
tex UnityEngine.Texture2D
sprite Rect
mat Material
addPadding bool
return Rect

DrawSprite() public method

Draw an enlarged sprite within the specified texture atlas.
public DrawSprite ( Texture2D tex, Rect sprite, Material mat, bool addPadding, int maxSize ) : Rect
tex UnityEngine.Texture2D
sprite Rect
mat Material
addPadding bool
maxSize int
return Rect

OnInspectorGUI() public method

Draw the inspector widget.
public OnInspectorGUI ( ) : void
return void

SelectIndex() public static method

Helper function that sets the index to the index of the specified item.
public static SelectIndex ( InvDatabase, db, InvBaseItem, item ) : void
db InvDatabase,
item InvBaseItem,
return void