public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materiaEditor) { GUI.enabled = true; EditorGUI.indentLevel = 0; bool isColapsable = false; if (colapsable == "true") { isColapsable = true; } bool isEnabled = true; if (prop.floatValue < 0.5f) { isEnabled = false; } isEnabled = StyledGUI.DrawInspectorCategory(category, isEnabled, top, down, isColapsable); if (isEnabled) { prop.floatValue = 1; } else { prop.floatValue = 0; } }
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { a = (StyledBanner)attribute; var bannerColor = new Color(a.colorR, a.colorG, a.colorB); StyledGUI.DrawInspectorBanner(bannerColor, a.title, a.helpURL); }
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { a = (StyledCategory)attribute; GUI.enabled = true; StyledGUI.DrawInspectorCategory(position, a.category); }
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { a = (StyledCategory)attribute; GUI.enabled = true; EditorGUI.indentLevel = 0; GUILayout.Space(a.top); StyledGUI.DrawInspectorCategory(a.category); GUILayout.Space(a.down); }
public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materiaEditor) { if (prop.floatValue < 0) { GUI.enabled = true; } else { GUI.enabled = true; StyledGUI.DrawInspectorCategory(position, category); } }
public override void OnGUI(Rect position, MaterialProperty prop, String label, MaterialEditor materiaEditor) { if (prop.floatValue < 0) { GUI.enabled = true; EditorGUI.indentLevel = 0; } else { GUI.enabled = true; EditorGUI.indentLevel = 0; GUILayout.Space(top); StyledGUI.DrawInspectorCategory(category); GUILayout.Space(down); } }
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { a = (StyledCategory)attribute; property.boolValue = StyledGUI.DrawInspectorCategory(a.category, property.boolValue, a.top, a.down, a.colapsable); }
public override void OnGUI(Rect position, MaterialProperty prop, string label, MaterialEditor materialEditor) { StyledGUI.DrawInspectorBanner(title); }