Attribute that draws string fields as a dropdown where a Type can be selected.
More...
Attribute that draws string fields as a dropdown where a Type can be selected.
◆ TypeSelectAttribute()
| Infohazard.Core.TypeSelectAttribute.TypeSelectAttribute |
( |
Type |
baseClass, |
|
|
bool |
allowAbstract = false, |
|
|
bool |
allowGeneric = false, |
|
|
bool |
search = false |
|
) |
| |
Construct a new TypeSelectAttribute.
- Parameters
-
| baseClass | If set, dropdown will only show types assignable to this type. |
| allowAbstract | Whether to show abstract classes. |
| allowGeneric | Whether to show generic types. |
| search | Whether to show a search bar./ |
◆ AllowAbstract
| bool Infohazard.Core.TypeSelectAttribute.AllowAbstract |
|
get |
Whether to show abstract classes.
◆ AllowGeneric
| bool Infohazard.Core.TypeSelectAttribute.AllowGeneric |
|
get |
Whether to show generic types.
◆ BaseClass
| Type Infohazard.Core.TypeSelectAttribute.BaseClass |
|
get |
If set, dropdown will only show types assignable to this type.
◆ Search
| bool Infohazard.Core.TypeSelectAttribute.Search |
|
get |
Whether to show a search bar.
The documentation for this class was generated from the following file:
- Runtime/Attributes/TypeSelectAttribute.cs