struct GUIResourceFieldContent

Structure describing contents of a GUIResourceField element.

Public

Constructors

GUIResourceFieldContent

GUIResourceFieldContent() = default

GUIResourceFieldContent

GUIResourceFieldContent(const String &typeNamespace, const String &type, const GUIContent &labelContent = GUIContent(), u32 labelWidth = 0, bool showLabel = false)

Fields

TypeNamespace

String TypeNamespace

Namespace of the type this field accepts.

Type

String Type

Type name of the type this field accepts.

Must derive from Resource.

ShowLabel

bool ShowLabel

If true, label will be shown next to the field.

LabelContent

GUIContent LabelContent

Content to display in the editor field label.

Only relevant if ShowLabel is true.

LabelWidth

u32 LabelWidth

Width of the label in pixels.

Only relevant if ShowLabel is true.