AutoPrefs.

DoGUI<T>(AutoPrefs.AutoPref<T>, Rect, 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, Rect area, GUIContent label, GUIStyle style, AutoPrefs.GUIFieldMethod<T> doGUIField)

Type Parameters

Name Description
T

Parameters

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

Return Value

Type Description
bool