Infohazard.Core 1.4.1
Infohazard Core Utility Library
Loading...
Searching...
No Matches
Infohazard.Core.TypeSelectAttribute Class Reference

Attribute that draws string fields as a dropdown where a Type can be selected. More...

Public Member Functions

 TypeSelectAttribute (Type baseClass, bool allowAbstract=false, bool allowGeneric=false, bool search=false)
 Construct a new TypeSelectAttribute. More...
 

Properties

Type BaseClass [get]
 If set, dropdown will only show types assignable to this type. More...
 
bool AllowAbstract [get]
 Whether to show abstract classes. More...
 
bool AllowGeneric [get]
 Whether to show generic types. More...
 
bool Search [get]
 Whether to show a search bar. More...
 

Detailed Description

Attribute that draws string fields as a dropdown where a Type can be selected.

Constructor & Destructor Documentation

◆ TypeSelectAttribute()

Infohazard.Core.TypeSelectAttribute.TypeSelectAttribute ( Type  baseClass,
bool  allowAbstract = false,
bool  allowGeneric = false,
bool  search = false 
)

Construct a new TypeSelectAttribute.

Parameters
baseClassIf set, dropdown will only show types assignable to this type.
allowAbstractWhether to show abstract classes.
allowGenericWhether to show generic types.
searchWhether to show a search bar./

Property Documentation

◆ 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: