Class ProductCatalogEditor.CompatibleGUI
Workaround toggleOnLabelClick not being supported correctly until Unity 5.5 See https://ono.unity3d.com/unity/unity/changeset/9f5bb2308eb90fb8276f49033a5b31f66cd4faa3 (5.5.0b2)
Inherited Members
Namespace: UnityEditor.Purchasing
Syntax
protected static class CompatibleGUI
Fields
parsedVersion
Whether or not the GUI item has been folded out.
Declaration
public static bool parsedVersion
Field Value
Type | Description |
---|---|
Boolean |
Methods
Foldout(Boolean, String, Boolean, GUIStyle)
Folds out the GUI item.
Declaration
public static bool Foldout(bool foldout, string text, bool toggleOnLabelClick, GUIStyle style)
Parameters
Type | Name | Description |
---|---|---|
Boolean | foldout | The shown foldout state. |
String | text | The label to show. |
Boolean | toggleOnLabelClick | Optional GUIStyle. |
GUIStyle | style | Specifies whether clicking the label toggles the foldout state. The default value is false. Set to true to include the label in the clickable area. |
Returns
Type | Description |
---|---|
Boolean | The foldout state selected by the user. If true, you should render sub-objects. |
FoldoutHelper(Boolean, String, Boolean, GUIStyle)
Helper that folds out the GUI item. Exists to fix a linker binding error with Foldout.
Declaration
public static bool FoldoutHelper(bool foldout, string text, bool toggleOnLabelClick, GUIStyle style)
Parameters
Type | Name | Description |
---|---|---|
Boolean | foldout | The shown foldout state. |
String | text | The label to show. |
Boolean | toggleOnLabelClick | Optional GUIStyle. |
GUIStyle | style | Specifies whether clicking the label toggles the foldout state. The default value is false. Set to true to include the label in the clickable area. |
Returns
Type | Description |
---|---|
Boolean | The foldout state selected by the user. If true, you should render sub-objects. |