コード例 #1
0
        public void RegenerateProjectAssets(SerializedAssetDatabaseBlacklist blacklist = null)
        {
            #if UNITY_EDITOR
            if (blacklist == null)
            {
                blacklist = SerializedAssetDatabaseBlacklist.Default;
            }

            serializedAssets = new SerializedAssetDictionary();

            foreach (string file in GetAssetFiles(@"Assets/", blacklist))
            {
                serializedAssets.Add(file, AssetDatabase.LoadAssetAtPath(file, typeof(Object)));
            }
            #endif
        }
コード例 #2
0
 public SerializedAssetDatabase()
 {
     serializedAssets = new SerializedAssetDictionary();
 }