|
Init(args)
Scripting Reference
|
The ValueProviderMenuAttribute allows you to add menu items to the dropdown menu for IInitializable<>.Init arguments of an Initializer<,>.
When the attribute is added to a ScriptableObject-derived class that implements either IValueByTypeProvider or IValueProvider<>, then the init argument will be retrieved at runtime using the IValueByTypeProvider.TryGetFor method or the IValueProvider.Value property and used to initialize the client object.
Properties | |
| string | ItemName [get, set] |
| The text on the menu item that appears in the dropdown menu for the targeted Init parameters. | |
| string | Tooltip [get, set] |
| Tooltip shown when the value provider tag is mouseovered in the Inspector. | |
| Is | Where [get, set] |
| Specifies zero or more type constraints, at least one of which a parameter type must fulfill for this menu item to be included in its dropdown menu. >para> | |
| Is | WhereAny [get, set] |
| Specifies zero or more type constraints, at least one of which a parameter type must fulfill for this menu item to be included in its dropdown menu. | |
| Is | WhereNone [get, set] |
| Specifies zero or more type constraints, none of which a parameter type can match, for this menu item to be included in its dropdown menu. | |
| Is | WhereAll [get, set] |
| Specifies zero or more type constraints, all of which a parameter type must fulfill for this menu item to be included in its dropdown menu. | |
| Type[] | IsAny [get, set] |
| Specifies zero or more parameter types that the value provider with this attribute targets. | |
| Type[] | NotAny [get, set] |
| Specifies zero or more parameter types that the value provider with this attribute does not target. | |
| Type | Is [get, set] |
| Specifies a parameter type that the value provider with this attribute targets. | |
| Type | Not [get, set] |
| Specifies type of Init parameter that the value provider with this attribute does not target. | |
| float | Order [get, set] |
| The position of this item in the dropdown menu, relative to other items. | |