C# Class InvDatabaseInspector, Pharos

Inheritance: Editor
Afficher le fichier Open project: rstaewen/Pharos Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat Rect

DrawSprite() public méthode

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
Résultat Rect

DrawSprite() public méthode

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
Résultat Rect

OnInspectorGUI() public méthode

Draw the inspector widget.
public OnInspectorGUI ( ) : void
Résultat void

SelectIndex() public static méthode

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,
Résultat void