Photon Fusion 2.1.1

SerializeReferenceTypePickerAttribute Class Reference

Attribute used to show a type picker for a field with [SerializeReference]. More...

Inherits DecoratingPropertyAttribute.

Public Member Functions

 SerializeReferenceTypePickerAttribute (params Type[] types)
 Initializes a new instance of the SerializeReferenceTypePickerAttribute class.
Public Member Functions inherited from PropertyAttribute
 PropertyAttribute (bool applyToCollection=false)

Public Attributes

bool GroupTypesByNamespace = true
 Should the types be grouped by namespace?
bool ShowFullName = false
 Should the full name be shown?

Properties

Type[] Types [get]
 Gets the types to be picked.
Properties inherited from PropertyAttribute
new bool applyToCollection [get]

Additional Inherited Members

Static Public Attributes inherited from DecoratingPropertyAttribute
const int DefaultOrder = -10000
 The default order of the attribute.
Protected Member Functions inherited from DecoratingPropertyAttribute
 DecoratingPropertyAttribute (bool applyToCollection=false)
 Initializes a new instance with the default order.
 DecoratingPropertyAttribute (int order, bool applyToCollection=false)
 Initializes a new instance with the specified order.

Detailed Description

Attribute used to show a type picker for a field with [SerializeReference].

Constructor & Destructor Documentation

◆ SerializeReferenceTypePickerAttribute()

SerializeReferenceTypePickerAttribute ( params Type[] types)

Initializes a new instance of the SerializeReferenceTypePickerAttribute class.

Parameters
typesThe types to be picked.