Пример #1
0
 private void RefreshAndSelect(PropertyData config)
 {
     RefreshData();
     m_PropertyTreeView.SetSelection(new List <int> {
         config.GetInstanceID()
     });
     m_PropertyInspector.SetProperty(config);
 }
Пример #2
0
        public void RefreshData()
        {
            m_Properties.Clear();
            string[] GUIds = AssetDatabase.FindAssets("t:PropertyData");
            foreach (string guid in GUIds)
            {
                PropertyData config = AssetDatabase.LoadAssetAtPath <PropertyData>(AssetDatabase.GUIDToAssetPath(guid));
                m_Properties.Add(config.GetInstanceID(), config);
            }

            m_PropertyTreeView.Reload();
        }