C# 클래스 InvDatabaseInspector, Pharos

상속: Editor
파일 보기 프로젝트 열기: rstaewen/Pharos 1 사용 예제들

공개 메소드들

메소드 설명
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