C# 클래스 LabelSearchAttribute, property-drawer-collection

ラベル名からアセットを検索し、アタッチします
상속: PropertyAttribute
파일 보기 프로젝트 열기: anchan828/property-drawer-collection

공개 프로퍼티들

프로퍼티 타입 설명
assetTypes System.Type>.Dictionary
canPrintLabelName bool
direction Direction,
foldout bool
init bool
labelName string
limit int
search bool

공개 메소드들

메소드 설명
LabelSearchAttribute ( string labelName ) : System.Collections.Generic
LabelSearchAttribute ( string labelName, Direction, direction ) : System.Collections.Generic
LabelSearchAttribute ( string labelName, int limit ) : System.Collections.Generic
LabelSearchAttribute ( string labelName, int limit, Direction, direction ) : System.Collections.Generic

메소드 상세

LabelSearchAttribute() 공개 메소드

public LabelSearchAttribute ( string labelName ) : System.Collections.Generic
labelName string
리턴 System.Collections.Generic

LabelSearchAttribute() 공개 메소드

public LabelSearchAttribute ( string labelName, Direction, direction ) : System.Collections.Generic
labelName string
direction Direction,
리턴 System.Collections.Generic

LabelSearchAttribute() 공개 메소드

public LabelSearchAttribute ( string labelName, int limit ) : System.Collections.Generic
labelName string
limit int
리턴 System.Collections.Generic

LabelSearchAttribute() 공개 메소드

public LabelSearchAttribute ( string labelName, int limit, Direction, direction ) : System.Collections.Generic
labelName string
limit int
direction Direction,
리턴 System.Collections.Generic

프로퍼티 상세

assetTypes 공개적으로 정적으로 프로퍼티

検索の高速化のためTypeをキャッシュしておく

public static Dictionary assetTypes
리턴 System.Type>.Dictionary

canPrintLabelName 공개적으로 프로퍼티

インスペクターにラベル名を表示するかどうか

trueで表示する

public bool canPrintLabelName
리턴 bool

direction 공개적으로 프로퍼티

検索順が降順か昇順か

public Direction, direction
리턴 Direction,

foldout 공개적으로 프로퍼티

配列の時に使用する

インスペクターを表示した時、最初から配列のフィールドを描画したい場合trueにする

public bool foldout
리턴 bool

init 공개적으로 프로퍼티

falseで検索が完了していなくても、とりあえずインスペクターを表示するようになる

trueだと検索が終わるまでインスペクターが表示されない

public bool init
리턴 bool

labelName 공개적으로 프로퍼티

検索するラベル名

public string labelName
리턴 string

limit 공개적으로 프로퍼티

取得する最大数

負や0を指定しても2147483647になる

public int limit
리턴 int

search 공개적으로 프로퍼티

インスペクターが表示された初回のみ検索が行われる

falseだと検索が行われず描画されない

public bool search
리턴 bool