C# Class LabelSearchAttribute, property-drawer-collection

ラベル名からアセットを検索し、アタッチします
Inheritance: PropertyAttribute
Mostrar archivo Open project: anchan828/property-drawer-collection

Public Properties

Property Type Description
assetTypes System.Type>.Dictionary
canPrintLabelName bool
direction Direction,
foldout bool
init bool
labelName string
limit int
search bool

Public Methods

Method Description
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

Method Details

LabelSearchAttribute() public method

public LabelSearchAttribute ( string labelName ) : System.Collections.Generic
labelName string
return System.Collections.Generic

LabelSearchAttribute() public method

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

LabelSearchAttribute() public method

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

LabelSearchAttribute() public method

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

Property Details

assetTypes public_oe static_oe property

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

public static Dictionary assetTypes
return System.Type>.Dictionary

canPrintLabelName public_oe property

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

trueで表示する

public bool canPrintLabelName
return bool

direction public_oe property

検索順が降順か昇順か

public Direction, direction
return Direction,

foldout public_oe property

配列の時に使用する

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

public bool foldout
return bool

init public_oe property

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

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

public bool init
return bool

labelName public_oe property

検索するラベル名

public string labelName
return string

limit public_oe property

取得する最大数

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

public int limit
return int

search public_oe property

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

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

public bool search
return bool