C# Класс InvDatabaseInspector, Pharos

Наследование: Editor
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

DrawSprite() публичный Метод

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
Результат Rect

DrawSprite() публичный Метод

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
Результат Rect

DrawSprite() публичный Метод

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
Результат Rect

OnInspectorGUI() публичный Метод

Draw the inspector widget.
public OnInspectorGUI ( ) : void
Результат void

SelectIndex() публичный статический Метод

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,
Результат void