1
1
using System . Collections . Generic ;
2
+ using System . IO ;
3
+ using System . Reflection ;
2
4
using UnityEngine ;
3
5
using UnityEditor ;
4
6
@@ -112,7 +114,11 @@ public static bool BatchBuildUseCollectionState {
112
114
}
113
115
}
114
116
115
- public static class Path {
117
+ public static class Path
118
+ {
119
+
120
+ public static string PackagePath => "Packages/com.unity.assetgraph" ;
121
+
116
122
public static string DefaultBasePath => "Assets/AssetGraph" ;
117
123
118
124
public static string BasePath => UserSettings . ConfigBaseDir ;
@@ -135,7 +141,6 @@ public static void ResetBasePath(string newPath)
135
141
public static string SettingFilePath { get { return System . IO . Path . Combine ( BasePath , "SettingFiles" ) ; } }
136
142
public static string TemporalSettingFilePath { get { return System . IO . Path . Combine ( CachePath , "TemporalSettingFiles" ) ; } }
137
143
138
- public static string ScriptTemplatePath { get { return System . IO . Path . Combine ( BasePath , "Editor/ScriptTemplate" ) ; } }
139
144
public static string UserSpacePath { get { return System . IO . Path . Combine ( BasePath , "Generated/Editor" ) ; } }
140
145
public static string CUISpacePath { get { return System . IO . Path . Combine ( BasePath , "Generated/CUI" ) ; } }
141
146
public static string SavedSettingsPath { get { return System . IO . Path . Combine ( BasePath , "SavedSettings" ) ; } }
@@ -144,10 +149,10 @@ public static void ResetBasePath(string newPath)
144
149
145
150
public static string DatabasePath { get { return System . IO . Path . Combine ( TemporalSettingFilePath , "AssetReferenceDB.asset" ) ; } }
146
151
public static string EventRecordPath { get { return System . IO . Path . Combine ( TemporalSettingFilePath , "AssetProcessEventRecord.asset" ) ; } }
147
-
148
152
public static string BatchBuildConfigPath { get { return System . IO . Path . Combine ( SavedSettingsPath , "BatchBuildConfig/BatchBuildConfig.asset" ) ; } }
149
153
150
- public static string GUIResourceBasePath { get { return System . IO . Path . Combine ( BasePath , "Editor/GUI/GraphicResources" ) ; } }
154
+ public static string ScriptTemplatePath { get { return System . IO . Path . Combine ( PackagePath , "Editor/ScriptTemplate" ) ; } }
155
+ public static string GUIResourceBasePath { get { return System . IO . Path . Combine ( PackagePath , "Editor/GUI/GraphicResources" ) ; } }
151
156
}
152
157
153
158
public struct BuildAssetBundleOption {
0 commit comments