Constructor FrameSettingsFieldAttribute
FrameSettingsFieldAttribute(int, FrameSettingsField, string, string, DisplayType, Type, FrameSettingsField[], FrameSettingsField[], int)
Attribute contenaing generation info for inspector and DebugMenu
선언
public FrameSettingsFieldAttribute(int group, FrameSettingsField autoName = FrameSettingsField.None, string displayedName = null, string tooltip = null, FrameSettingsFieldAttribute.DisplayType type = DisplayType.BoolAsCheckbox, Type targetType = null, FrameSettingsField[] positiveDependencies = null, FrameSettingsField[] negativeDependencies = null, int customOrderInGroup = -1)
파라미터
타입 | 이름 | 설명 |
---|---|---|
int | group | Group index contening this element. |
FrameSettingsField | autoName | [Optional] Helper to name the label as the enum entry given. Alternatively, use displayedName. |
string | displayedName | [Optional] Displayed name to use as label. If given, it override autoname. |
string | tooltip | [Optional] tooltip to use in inspector. |
FrameSettingsFieldAttribute.DisplayType | type | [Optional] Requested display for this entry. |
Type | targetType | [Requested for Enum] Allow to map boolean value to named enum. |
FrameSettingsField[] | positiveDependencies | [Optional] Dependencies that must be activated in order to appear activable in Inspector. Indentation is deduced frm this information. |
FrameSettingsField[] | negativeDependencies | |
int | customOrderInGroup | [Optional] If order is not the same than the order of value in the FrameSettingsField enum, you can ask to rewrite order from this element. Could be asked to use this on another element too to have correct ordering amongst everything. (Exemple if the 2nd element must be showed at position 10, add this property with value 10 to in and this parameter with value 3 to the following one (the 3rd). |