This attribute class has no internal functionality. Rather, it's presence is checked for by the editor-only, EyE.EditorUnity.Tools.ExposedObjectProperties and EyE.EditorUnity.Tools.PropertyExposerFunctions classes which actually implement it.
Exposed members, including fields, properties and functions, can be drawn without minimal user work by implementing one of the following classes:
Usage Examples: EyE.Unity.Examples.Rank
EyE.Unity.Examples.InventoryObjectType
Public Member Functions | |
| ExposeMemberAttribute (string tooltip="", [CallerLineNumber]int order=0) | |
| Default constructor that assigns the provided tool-tip to the ExosedProperty. | |
Public Attributes | |
| string | alternatelabel |
| This value will be used for the Label, but only when the boolean referenced by alternateLabelConditionalName, is true | |
| string | alternateLabelConditionalName |
| Used to optionally reference a boolean member of the object. This bool will determine weather the mainLabel, or alternateLabel is to be used. | |
| string | conditionalDisplayMemberName |
| Name, identifier of the (sibling) bool member, in object containing the exposed member, that will determine if this value is to be displayed or not. Will parse a leading exclamation point '!' to indicate the boolean value should be inverted/negated for the conditional. You can reference or identify a function, accessor or field member with this string. You can place the referenced member inside | |
| int | displayOrderInGroup |
| Used to define a specific order within the ExposedProperties group (including "no group") | |
| bool | displayWarningWhenNull |
| This option is appropriate only for reference types, not structs or value-types. Setting this option to true makes the member exposer display a warning in the inspector, when no reference has been provided for the exposed member (is null) | |
| string | group |
| The group may reference a member boolean by name, or start with the string "Foldout"; in which case the group will be enclosed in a foldout section, rather than just an indented section. | |
| string | groupEnableControl |
| Applicable only to boolean type members. The specified group is enabled, or disabled(and hidden), by looking at the boolean value of the member the attribute is applied to. | |
| bool | isAPotentialWarningFlag |
| This option is only used when exposing booleans types. When this flag is used, rather than displaying a check box when exposing the boolean, it will display a warning, when the member's value is true, and nothing when the value is false. The Label of the exposed member is displayed as the warning's text. | |
| string | mainLabel |
| if left blank the "nicified" version of the identifier will be used for the label. Otherwise this value will be used for the main label. (exception: see alternateLabel below) | |
| string | offerCreationFunctionWhenNull |
| This option is appropriate only for reference types, not structs or value-types. When specified, a button will be presented when this members reference value is null. The function named in this parameter will be invoked when the button is clicked. | |
| bool | readOnly |
| Signals that the exposed member should NOT allow input. Default value is false. | |
| int | sourceLineNumber |
| stores the source line number the attribute was applied on. | |
| string | tooltip |
| tool-tip assigned for display for the ExposedProperty | |
Inherits Attribute.