Exemple #1
0
        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();
        }
Exemple #2
0
 private static void SetType(HeaderHidingType newstate)
 {
     state = newstate;
     PersistentData.Set("HeaderHiderState", state.ToString());
 }