File tree 4 files changed +22
-6
lines changed
4 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 1.1.8]
8
+ ## Changed
9
+ - Fixed mobile builds (using editor references on runtime files)
10
+
7
11
8
12
## [ 1.1.7]
9
13
## Added
@@ -92,6 +96,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
92
96
## [ Unreleased]
93
97
- Add a setup wizzard for first time settings creation
94
98
99
+ [ 1.1.8 ] : https://github.com/badawe/ScriptableObjectCollection/releases/tag/v1.1.8
95
100
[ 1.1.7 ] : https://github.com/badawe/ScriptableObjectCollection/releases/tag/v1.1.7
96
101
[ 1.1.6 ] : https://github.com/badawe/ScriptableObjectCollection/releases/tag/v1.1.6
97
102
[ 1.1.5 ] : https://github.com/badawe/ScriptableObjectCollection/releases/tag/v1.1.5
Original file line number Diff line number Diff line change @@ -40,10 +40,19 @@ private class CollectionToSettings
40
40
41
41
[ SerializeField ]
42
42
private UnityEditor . DefaultAsset defaultGeneratedCodeFolder ;
43
-
44
- private string DefaultGeneratedCodeFolder => UnityEditor . AssetDatabase . GetAssetPath ( defaultGeneratedCodeFolder ) ;
45
43
#pragma warning restore 0649
46
44
#endif
45
+
46
+ private string DefaultGeneratedCodeFolder
47
+ {
48
+ get
49
+ {
50
+ #if UNITY_EDITOR
51
+ return UnityEditor . AssetDatabase . GetAssetPath ( defaultGeneratedCodeFolder ) ;
52
+ #endif
53
+ return string . Empty ;
54
+ }
55
+ }
47
56
48
57
[ SerializeField ]
49
58
private GeneratedStaticFileType defaultGenerator = GeneratedStaticFileType . DirectAccess ;
Original file line number Diff line number Diff line change 1
- using UnityEditor ;
2
1
using UnityEngine ;
3
2
4
3
namespace System . IO
@@ -14,9 +13,12 @@ public static string GetRelativePath(string path)
14
13
15
14
public static bool IsObjectDeeperThanObject ( Object childObject , Object parentObject )
16
15
{
17
- Uri childPath = new Uri ( Path . GetFullPath ( AssetDatabase . GetAssetPath ( ( UnityEngine . Object ) childObject ) ) ) ;
18
- Uri parentPath = new Uri ( Path . GetFullPath ( AssetDatabase . GetAssetPath ( ( UnityEngine . Object ) parentObject ) ) ) ;
16
+ #if UNITY_EDITOR
17
+ Uri childPath = new Uri ( Path . GetFullPath ( UnityEditor . AssetDatabase . GetAssetPath ( ( UnityEngine . Object ) childObject ) ) ) ;
18
+ Uri parentPath = new Uri ( Path . GetFullPath ( UnityEditor . AssetDatabase . GetAssetPath ( ( UnityEngine . Object ) parentObject ) ) ) ;
19
19
return parentPath . IsBaseOf ( childPath ) ;
20
+ #endif
21
+ return false ;
20
22
}
21
23
}
22
24
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " com.brunomikoski.scriptableobjectcollection" ,
3
3
"displayName" : " Scriptable Object Collection" ,
4
- "version" : " 1.1.7 " ,
4
+ "version" : " 1.1.8 " ,
5
5
"unity" : " 2018.4" ,
6
6
"description" : " Scriptable Object Collection" ,
7
7
"keywords" : [
You can’t perform that action at this time.
0 commit comments