mirror of https://github.com/tuyoogame/YooAsset
update settings
parent
3c9c61c346
commit
f804e8405e
|
@ -22,7 +22,7 @@ namespace YooAsset.Editor
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string GetStreamingAssetsRoot()
|
public static string GetStreamingAssetsRoot()
|
||||||
{
|
{
|
||||||
return $"{Application.dataPath}/StreamingAssets/{YooAssetSettings.DefaultYooFolderName}/";
|
return $"{Application.dataPath}/StreamingAssets/{YooAssetSettingsData.Setting.DefaultYooFolderName}/";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -58,7 +58,7 @@ namespace YooAsset
|
||||||
}
|
}
|
||||||
private static string CreateDefaultBuildinRoot()
|
private static string CreateDefaultBuildinRoot()
|
||||||
{
|
{
|
||||||
return PathUtility.Combine(UnityEngine.Application.streamingAssetsPath, YooAssetSettings.DefaultYooFolderName);
|
return PathUtility.Combine(UnityEngine.Application.streamingAssetsPath, YooAssetSettingsData.Setting.DefaultYooFolderName);
|
||||||
}
|
}
|
||||||
private static string CreateDefaultSandboxRoot()
|
private static string CreateDefaultSandboxRoot()
|
||||||
{
|
{
|
||||||
|
@ -66,11 +66,11 @@ namespace YooAsset
|
||||||
// 注意:为了方便调试查看,编辑器下把存储目录放到项目里。
|
// 注意:为了方便调试查看,编辑器下把存储目录放到项目里。
|
||||||
string projectPath = Path.GetDirectoryName(UnityEngine.Application.dataPath);
|
string projectPath = Path.GetDirectoryName(UnityEngine.Application.dataPath);
|
||||||
projectPath = PathUtility.RegularPath(projectPath);
|
projectPath = PathUtility.RegularPath(projectPath);
|
||||||
return PathUtility.Combine(projectPath, YooAssetSettings.DefaultYooFolderName);
|
return PathUtility.Combine(projectPath, YooAssetSettingsData.Setting.DefaultYooFolderName);
|
||||||
#elif UNITY_STANDALONE
|
#elif UNITY_STANDALONE
|
||||||
return PathUtility.Combine(UnityEngine.Application.dataPath, YooAssetSettings.DefaultYooFolderName);
|
return PathUtility.Combine(UnityEngine.Application.dataPath, YooAssetSettingsData.Setting.DefaultYooFolderName);
|
||||||
#else
|
#else
|
||||||
return PathUtility.Combine(UnityEngine.Application.persistentDataPath, YooAssetSettings.DefaultYooFolderName);
|
return PathUtility.Combine(UnityEngine.Application.persistentDataPath, YooAssetSettingsData.Setting.DefaultYooFolderName);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,11 @@ namespace YooAsset
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string ManifestFileName = "PackageManifest";
|
public string ManifestFileName = "PackageManifest";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 默认的YooAsset文件夹名称
|
||||||
|
/// </summary>
|
||||||
|
public string DefaultYooFolderName = "yoo";
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 清单文件头标记
|
/// 清单文件头标记
|
||||||
|
@ -37,11 +42,6 @@ namespace YooAsset
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string CacheBundleInfoFileName = "__info";
|
public const string CacheBundleInfoFileName = "__info";
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 默认的YooAsset文件夹名称
|
|
||||||
/// </summary>
|
|
||||||
public const string DefaultYooFolderName = "yoo";
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 缓存的资源文件的文件夹名称
|
/// 缓存的资源文件的文件夹名称
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue