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
Assembly: solution.dll
Syntax
protected static class ProductCatalogEditor.CompatibleGUI
Fields
parsedVersion
Whether or not the GUI item has been folded out.
Declaration
public static bool parsedVersion
Field Value
Type | Description |
---|---|
bool |
Methods
Foldout(bool, string, bool, GUIStyle)
Folds out the GUI item.
Declaration
public static bool Foldout(bool foldout, string text, bool toggleOnLabelClick, GUIStyle style)
Parameters
Type | Name | Description |
---|---|---|
bool | foldout | The shown foldout state. |
string | text | The label to show. |
bool | 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 |
---|---|
bool | The foldout state selected by the user. If true, you should render sub-objects. |
FoldoutHelper(bool, string, bool, 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 |
---|---|---|
bool | foldout | The shown foldout state. |
string | text | The label to show. |
bool | 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 |
---|---|
bool | The foldout state selected by the user. If true, you should render sub-objects. |