mirror of https://github.com/tuyoogame/YooAsset
update shader variant collector
parent
03abac082c
commit
33a1b9d4bf
|
@ -23,6 +23,7 @@ namespace YooAsset.Editor
|
||||||
}
|
}
|
||||||
|
|
||||||
private const float WaitMilliseconds = 1000f;
|
private const float WaitMilliseconds = 1000f;
|
||||||
|
private const float SleepMilliseconds = 100f;
|
||||||
private static string _savePath;
|
private static string _savePath;
|
||||||
private static string _packageName;
|
private static string _packageName;
|
||||||
private static int _processMaxNum;
|
private static int _processMaxNum;
|
||||||
|
@ -107,7 +108,7 @@ namespace YooAsset.Editor
|
||||||
|
|
||||||
if (_steps == ESteps.CollectSleeping)
|
if (_steps == ESteps.CollectSleeping)
|
||||||
{
|
{
|
||||||
if (_elapsedTime.ElapsedMilliseconds > WaitMilliseconds)
|
if (_elapsedTime.ElapsedMilliseconds > SleepMilliseconds)
|
||||||
{
|
{
|
||||||
DestroyAllSpheres();
|
DestroyAllSpheres();
|
||||||
_elapsedTime.Stop();
|
_elapsedTime.Stop();
|
||||||
|
@ -236,7 +237,7 @@ namespace YooAsset.Editor
|
||||||
_allSpheres.Clear();
|
_allSpheres.Clear();
|
||||||
|
|
||||||
// 尝试释放编辑器加载的资源
|
// 尝试释放编辑器加载的资源
|
||||||
EditorUtility.UnloadUnusedAssetsImmediate();
|
EditorUtility.UnloadUnusedAssetsImmediate(true);
|
||||||
}
|
}
|
||||||
private static void CreateManifest()
|
private static void CreateManifest()
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,7 +8,7 @@ namespace YooAsset
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// AssetBundle文件的后缀名
|
/// AssetBundle文件的后缀名
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string AssetBundleFileVariant = "bundle";
|
public string BundleFileVariant = "bundle";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 原生文件的后缀名
|
/// 原生文件的后缀名
|
||||||
|
@ -41,6 +41,17 @@ namespace YooAsset
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string PatchManifestFileVersion = "1.4.0";
|
public const string PatchManifestFileVersion = "1.4.0";
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 缓存的数据文件名称
|
||||||
|
/// </summary>
|
||||||
|
public const string CacheBundleDataFileName = "__data";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 缓存的信息文件名称
|
||||||
|
/// </summary>
|
||||||
|
public const string CacheBundleInfoFileName = "__info";
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 构建输出文件夹名称
|
/// 构建输出文件夹名称
|
||||||
|
|
|
@ -79,9 +79,9 @@ namespace YooAsset
|
||||||
{
|
{
|
||||||
string shareBundleName;
|
string shareBundleName;
|
||||||
if (uniqueBundleName)
|
if (uniqueBundleName)
|
||||||
shareBundleName = $"{packageName.ToLower()}_{YooAssetSettings.UnityShadersBundleName}.{Setting.AssetBundleFileVariant}";
|
shareBundleName = $"{packageName.ToLower()}_{YooAssetSettings.UnityShadersBundleName}.{Setting.BundleFileVariant}";
|
||||||
else
|
else
|
||||||
shareBundleName = $"{YooAssetSettings.UnityShadersBundleName}.{Setting.AssetBundleFileVariant}";
|
shareBundleName = $"{YooAssetSettings.UnityShadersBundleName}.{Setting.BundleFileVariant}";
|
||||||
return shareBundleName.ToLower();
|
return shareBundleName.ToLower();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue