public static void SetHidden(ShaderHeader header, bool set_hidden, bool save = true) { bool contains = headerHiddenSaved.ContainsKey(header.materialProperty.name); if (!contains || (contains && headerHiddenSaved[header.materialProperty.name] != set_hidden)) { headerHiddenSaved[header.materialProperty.name] = set_hidden; header.is_hidden = set_hidden; if (save) { PersistentData.Set("HiddenHeaderNames", Parser.Serialize(headerHiddenSaved)); } } UpdateValues(); }
private static void SetType(HeaderHidingType newstate) { state = newstate; PersistentData.Set("HeaderHiderState", state.ToString()); }