Table of Contents

Class PropertyDrawerData

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Contains static variables and methods that are used by the property drawers.

[Version(4, 3, 0)]
public static class PropertyDrawerData
Inheritance
PropertyDrawerData
Inherited Members

Remarks

These are meant to be set or called globally when the Editor loads. You can define a class such as PropertyDrawerDataInitializer that initializes these values, and as decorated with the UnityEditor.InitializeOnLoadAttribute.

See Property Drawers for more details.

Fields

ForceValue

Whether to force the value to be valid, provided the attributes allows it.

HighlightColor

Color used to highlight fields in the inspector.

SeparatorColor

Color used to draw separators.

SeparatorHeight

The height used to draw separators.

ValueIsInvalidMessage
WarnInConsole

Whether to warn in the console when a value is invalid.

WarnInInspector

Whether to warn in the inspector when a value is invalid.

WarningColor

Color used to draw warnings in the inspector.

Methods

GetValues<T>(string)

Gets the list of values associated with the given key.

RegisterValuesRetriever<T>(string, Func<IEnumerable<T>>)

Registers a new function to retrieve a list of values of the given type.