File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 22using System . Collections . Generic ;
33using System . Linq ;
44using System . Reflection ;
5+ using System . Text . RegularExpressions ;
56using Kekser . SaveSystem . Data ;
67using UnityEngine ;
78
89namespace Kekser . SaveSystem . Attributes
910{
1011 public static class SaveAttributeManager
1112 {
13+ private const string AssembliesToIgnoreRegex = @"^Unity\.|^UnityEngine\.|^mscorlib|^System\.|^Mono\." ;
14+
1215 [ RuntimeInitializeOnLoadMethod ( RuntimeInitializeLoadType . BeforeSceneLoad ) ]
1316 private static void Initialize ( )
1417 {
@@ -58,7 +61,7 @@ public static void CacheTypes()
5861
5962 foreach ( Assembly assembly in assemblies )
6063 {
61- if ( ! assembly . FullName . StartsWith ( "Assembly-CSharp" ) && ! assembly . FullName . StartsWith ( "SaveSystem" ) )
64+ if ( Regex . IsMatch ( assembly . FullName , AssembliesToIgnoreRegex ) )
6265 continue ;
6366
6467 Type [ ] types = assembly . GetTypes ( ) ;
Original file line number Diff line number Diff line change 22 "name" : " com.kekser.savesystem" ,
33 "displayName" : " SaveSystem" ,
44 "author" : { "name" : " Kekser" , "url" : " https://github.com/DerKekser" },
5- "version" : " 1.1.0 " ,
5+ "version" : " 1.1.1 " ,
66 "unity" : " 2020.3" ,
77 "description" : " A save system for unity." ,
88 "keywords" : [ " save" , " load" ],
You can’t perform that action at this time.
0 commit comments