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 virtual 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
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.