AutoPrefs.

DoGUI<T>(AutoPrefs.AutoPref<T>, GUIContent, GUIStyle, AutoPrefs.GUIFieldMethod<T>) Method

Summary

[Editor-Only] Draws GUI controls for this pref and returns true if the value was changed.

Syntax

public static bool DoGUI<T>(this AutoPrefs.AutoPref<T> pref, GUIContent label, GUIStyle style, AutoPrefs.GUIFieldMethod<T> doGUIField)

Type Parameters

Name Description
T

Parameters

Name Type Description
pref AutoPrefs.AutoPref<T>
label GUIContent
style GUIStyle
doGUIField AutoPrefs.GUIFieldMethod<T>

Return Value

Type Description
bool