SetString() private method

private SetString ( string key, string value ) : void
key string
value string
return void
Ejemplo n.º 1
0
        public void SerializeState(string uid)
        {
            SessionState.SetBool(uid + Styles.serializeFilterSelection, m_bFilterSelection);
            SessionState.SetBool(uid + Styles.showInactiveObjects, m_ShowInactiveObjects);

            for (int i = 0; i < multiColumnHeader.state.columns.Length; i++)
            {
                var filter = Col(i).filter;

                if (filter == null)
                {
                    continue;
                }

                string filterState = filter.SerializeState();

                if (string.IsNullOrEmpty(filterState))
                {
                    continue;
                }

                SessionState.SetString(uid + Styles.serializeFilter + i, filterState);
            }

            SessionState.SetString(uid + Styles.serializeTreeViewState, JsonUtility.ToJson(state));
            EditorPrefs.SetString(uid + Styles.serializeColumnHeaderState, JsonUtility.ToJson(multiColumnHeader.state));
        }
Ejemplo n.º 2
0
 public void SerializeState(string uid)
 {
     SessionState.SetBool(uid + SerializedPropertyTreeView.Styles.serializeFilterSelection, this.m_bFilterSelection);
     for (int i = 0; i < base.multiColumnHeader.state.columns.Length; i++)
     {
         SerializedPropertyFilters.IFilter filter = this.Col(i).filter;
         if (filter != null)
         {
             string value = filter.SerializeState();
             if (!string.IsNullOrEmpty(value))
             {
                 SessionState.SetString(uid + SerializedPropertyTreeView.Styles.serializeFilter + i, value);
             }
         }
     }
     SessionState.SetString(uid + SerializedPropertyTreeView.Styles.serializeTreeViewState, JsonUtility.ToJson(base.state));
     SessionState.SetString(uid + SerializedPropertyTreeView.Styles.serializeColumnHeaderState, JsonUtility.ToJson(base.multiColumnHeader.state));
 }