Class UnitOption<TUnit>
Inheritance
UnitOption<TUnit>
Syntax
[FuzzyOption(typeof(IUnit))]
public class UnitOption<TUnit> : IUnitOption, IFuzzyOption where TUnit : IUnit
Type Parameters
Constructors
UnitOption()
Declaration
UnitOption(TUnit)
Declaration
public UnitOption(TUnit unit)
Parameters
Type |
Name |
Description |
TUnit |
unit |
|
Properties
category
Declaration
public UnitCategory category { get; }
Property Value
Implements
Declaration
public int controlInputCount { get; }
Property Value
Implements
controlOutputCount
Declaration
public int controlOutputCount { get; }
Property Value
Implements
description
Declaration
protected UnitDescription description { get; }
Property Value
descriptor
Declaration
protected IUnitDescriptor descriptor { get; }
Property Value
favoritable
Declaration
public virtual bool favoritable { get; }
Property Value
Implements
favoriteKey
Declaration
public string favoriteKey { get; }
Property Value
Implements
filled
Declaration
[DoNotSerialize]
protected bool filled { get; }
Property Value
Declaration
public string formerHaystack { get; }
Property Value
Implements
Declaration
public bool hasFooter { get; }
Property Value
Implements
haystack
Declaration
public string haystack { get; }
Property Value
Implements
haystackHuman
Declaration
protected string haystackHuman { get; set; }
Property Value
haystackProgrammer
Declaration
protected string haystackProgrammer { get; set; }
Property Value
Declaration
public virtual string headerLabel { get; }
Property Value
Implements
icon
Declaration
public EditorTexture icon { get; }
Property Value
Implements
label
Declaration
public string label { get; }
Property Value
Implements
labelHuman
Declaration
protected string labelHuman { get; set; }
Property Value
labelProgrammer
Declaration
protected string labelProgrammer { get; set; }
Property Value
order
Declaration
public int order { get; }
Property Value
Implements
parentOnly
Declaration
public bool parentOnly { get; }
Property Value
Implements
Declaration
[DoNotSerialize]
protected bool showControlInputsInFooter { get; }
Property Value
Declaration
[DoNotSerialize]
protected bool showControlOutputsInFooter { get; }
Property Value
Declaration
public virtual bool showHeaderIcon { get; }
Property Value
Implements
Declaration
[DoNotSerialize]
protected bool showValueInputsInFooter { get; }
Property Value
Declaration
[DoNotSerialize]
protected bool showValueOutputsInFooter { get; }
Property Value
source
Declaration
protected UnitOptionRow source { get; }
Property Value
sourceScriptGuids
Declaration
public HashSet<string> sourceScriptGuids { get; protected set; }
Property Value
Implements
unit
Declaration
public TUnit unit { get; protected set; }
Property Value
unitType
Declaration
public Type unitType { get; }
Property Value
Implements
value
Declaration
public object value { get; }
Property Value
Implements
Declaration
public HashSet<Type> valueInputTypes { get; }
Property Value
Implements
valueOutputTypes
Declaration
public HashSet<Type> valueOutputTypes { get; }
Property Value
Implements
Methods
Category()
Declaration
protected virtual UnitCategory Category()
Returns
Deserialize(UnitOptionRow)
Declaration
public virtual void Deserialize(UnitOptionRow row)
Parameters
Implements
FavoriteKey()
Declaration
protected virtual string FavoriteKey()
Returns
FillFromData()
Declaration
protected virtual void FillFromData()
FillFromUnit()
Declaration
protected virtual void FillFromUnit()
Declaration
public float GetFooterHeight(float width)
Parameters
Type |
Name |
Description |
Single |
width |
|
Returns
Implements
Haystack(Boolean)
Declaration
protected virtual string Haystack(bool human)
Parameters
Type |
Name |
Description |
Boolean |
human |
|
Returns
Icon()
Declaration
protected virtual EditorTexture Icon()
Returns
InstantiateUnit()
Declaration
public virtual IUnit InstantiateUnit()
Returns
Implements
Label(Boolean)
Declaration
protected virtual string Label(bool human)
Parameters
Type |
Name |
Description |
Boolean |
human |
|
Returns
Declaration
public void OnFooterGUI(Rect position)
Parameters
Type |
Name |
Description |
Rect |
position |
|
Implements
OnPopulate()
Declaration
public virtual void OnPopulate()
Implements
Order()
Declaration
protected virtual int Order()
Returns
PortDescription(IUnitPort)
Declaration
protected UnitPortDescription PortDescription(IUnitPort port)
Parameters
Returns
Declaration
public virtual void PreconfigureUnit(TUnit unit)
Parameters
Type |
Name |
Description |
TUnit |
unit |
|
Prewarm()
Declaration
public virtual void Prewarm()
SearchResultLabel(String)
Declaration
public virtual string SearchResultLabel(string query)
Parameters
Type |
Name |
Description |
String |
query |
|
Returns
Implements
Serialize()
Declaration
public virtual UnitOptionRow Serialize()
Returns
Implements
Declaration
protected virtual bool ShowControlInputsInFooter()
Returns
Declaration
protected virtual bool ShowControlOutputsInFooter()
Returns
Declaration
protected virtual bool ShowValueInputsInFooter()
Returns
Declaration
protected virtual bool ShowValueOutputsInFooter()
Returns
Style()
Declaration
protected virtual GUIStyle Style()
Returns
Explicit Interface Implementations
IFuzzyOption.style
Declaration
GUIStyle IFuzzyOption.style { get; }
Returns
Implements
Declaration
void IUnitOption.PreconfigureUnit(IUnit unit)
Parameters
Type |
Name |
Description |
IUnit |
unit |
|
Implements
IUnitOption.unit
Declaration
IUnit IUnitOption.unit { get; }
Returns
Implements
Extension Methods