update 2.2.9
This commit is contained in:
parent
31af0dc359
commit
c97e96015b
15
CHANGELOG.md
15
CHANGELOG.md
@ -2,6 +2,21 @@
|
|||||||
|
|
||||||
All notable changes to this package will be documented in this file.
|
All notable changes to this package will be documented in this file.
|
||||||
|
|
||||||
|
## [2.2.9] - 2025-01-14
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- (#438) 修复了纯血鸿蒙加载本地文件失败的问题。
|
||||||
|
- (#445) 修复了小游戏扩展文件系统脚本编译错误。
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- EditorSimulateModeHelper.SimulateBuild()方法变更
|
||||||
|
|
||||||
|
```csharp
|
||||||
|
public static PackageInvokeBuildResult SimulateBuild(string packageName);
|
||||||
|
```
|
||||||
|
|
||||||
## [2.2.8-preview] - 2025-01-03
|
## [2.2.8-preview] - 2025-01-03
|
||||||
|
|
||||||
新增了单元测试用例。
|
新增了单元测试用例。
|
||||||
|
@ -8,7 +8,7 @@ namespace YooAsset.Editor
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 模拟构建
|
/// 模拟构建
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static EditorSimulateBuildResult SimulateBuild(EditorSimulateBuildParam buildParam)
|
public static PackageInvokeBuildResult SimulateBuild(PackageInvokeBuildParam buildParam)
|
||||||
{
|
{
|
||||||
string packageName = buildParam.PackageName;
|
string packageName = buildParam.PackageName;
|
||||||
string buildPipelineName = buildParam.BuildPipelineName;
|
string buildPipelineName = buildParam.BuildPipelineName;
|
||||||
@ -31,7 +31,7 @@ namespace YooAsset.Editor
|
|||||||
BuildResult buildResult = pipeline.Run(buildParameters, false);
|
BuildResult buildResult = pipeline.Run(buildParameters, false);
|
||||||
if (buildResult.Success)
|
if (buildResult.Success)
|
||||||
{
|
{
|
||||||
var reulst = new EditorSimulateBuildResult();
|
var reulst = new PackageInvokeBuildResult();
|
||||||
reulst.PackageRootDirectory = buildResult.OutputPackageDirectory;
|
reulst.PackageRootDirectory = buildResult.OutputPackageDirectory;
|
||||||
return reulst;
|
return reulst;
|
||||||
}
|
}
|
||||||
|
@ -75,12 +75,12 @@ namespace YooAsset.Editor
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 资源包名称样式
|
/// 资源包名称样式
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public EFileNameStyle FileNameStyle;
|
public EFileNameStyle FileNameStyle = EFileNameStyle.HashName;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 内置文件的拷贝选项
|
/// 内置文件的拷贝选项
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public EBuildinFileCopyOption BuildinFileCopyOption;
|
public EBuildinFileCopyOption BuildinFileCopyOption = EBuildinFileCopyOption.None;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 内置文件的拷贝参数
|
/// 内置文件的拷贝参数
|
||||||
@ -116,16 +116,6 @@ namespace YooAsset.Editor
|
|||||||
string message = BuildLogger.GetErrorMessage(ErrorCode.NoBuildTarget, "Please select the build target platform !");
|
string message = BuildLogger.GetErrorMessage(ErrorCode.NoBuildTarget, "Please select the build target platform !");
|
||||||
throw new Exception(message);
|
throw new Exception(message);
|
||||||
}
|
}
|
||||||
if (string.IsNullOrEmpty(PackageName))
|
|
||||||
{
|
|
||||||
string message = BuildLogger.GetErrorMessage(ErrorCode.PackageNameIsNullOrEmpty, "Package name is null or empty !");
|
|
||||||
throw new Exception(message);
|
|
||||||
}
|
|
||||||
if (string.IsNullOrEmpty(PackageVersion))
|
|
||||||
{
|
|
||||||
string message = BuildLogger.GetErrorMessage(ErrorCode.PackageVersionIsNullOrEmpty, "Package version is null or empty !");
|
|
||||||
throw new Exception(message);
|
|
||||||
}
|
|
||||||
if (string.IsNullOrEmpty(BuildOutputRoot))
|
if (string.IsNullOrEmpty(BuildOutputRoot))
|
||||||
{
|
{
|
||||||
string message = BuildLogger.GetErrorMessage(ErrorCode.BuildOutputRootIsNullOrEmpty, "Build output root is null or empty !");
|
string message = BuildLogger.GetErrorMessage(ErrorCode.BuildOutputRootIsNullOrEmpty, "Build output root is null or empty !");
|
||||||
@ -136,6 +126,26 @@ namespace YooAsset.Editor
|
|||||||
string message = BuildLogger.GetErrorMessage(ErrorCode.BuildinFileRootIsNullOrEmpty, "Buildin file root is null or empty !");
|
string message = BuildLogger.GetErrorMessage(ErrorCode.BuildinFileRootIsNullOrEmpty, "Buildin file root is null or empty !");
|
||||||
throw new Exception(message);
|
throw new Exception(message);
|
||||||
}
|
}
|
||||||
|
if (string.IsNullOrEmpty(BuildPipeline))
|
||||||
|
{
|
||||||
|
string message = BuildLogger.GetErrorMessage(ErrorCode.BuildPipelineIsNullOrEmpty, "Build pipeline is null or empty !");
|
||||||
|
throw new Exception(message);
|
||||||
|
}
|
||||||
|
if (BuildBundleType == (int)EBuildBundleType.Unknown)
|
||||||
|
{
|
||||||
|
string message = BuildLogger.GetErrorMessage(ErrorCode.BuildBundleTypeIsUnknown, $"Build bundle type is unknown {BuildBundleType} !");
|
||||||
|
throw new Exception(message);
|
||||||
|
}
|
||||||
|
if (string.IsNullOrEmpty(PackageName))
|
||||||
|
{
|
||||||
|
string message = BuildLogger.GetErrorMessage(ErrorCode.PackageNameIsNullOrEmpty, "Package name is null or empty !");
|
||||||
|
throw new Exception(message);
|
||||||
|
}
|
||||||
|
if (string.IsNullOrEmpty(PackageVersion))
|
||||||
|
{
|
||||||
|
string message = BuildLogger.GetErrorMessage(ErrorCode.PackageVersionIsNullOrEmpty, "Package version is null or empty !");
|
||||||
|
throw new Exception(message);
|
||||||
|
}
|
||||||
|
|
||||||
// 设置默认备注信息
|
// 设置默认备注信息
|
||||||
if (string.IsNullOrEmpty(PackageNote))
|
if (string.IsNullOrEmpty(PackageNote))
|
||||||
|
@ -12,6 +12,8 @@ namespace YooAsset.Editor
|
|||||||
BuildOutputRootIsNullOrEmpty = 113,
|
BuildOutputRootIsNullOrEmpty = 113,
|
||||||
BuildinFileRootIsNullOrEmpty = 114,
|
BuildinFileRootIsNullOrEmpty = 114,
|
||||||
PackageOutputDirectoryExists = 115,
|
PackageOutputDirectoryExists = 115,
|
||||||
|
BuildPipelineIsNullOrEmpty = 116,
|
||||||
|
BuildBundleTypeIsUnknown = 117,
|
||||||
RecommendScriptBuildPipeline = 130,
|
RecommendScriptBuildPipeline = 130,
|
||||||
|
|
||||||
// TaskGetBuildMap
|
// TaskGetBuildMap
|
||||||
|
@ -187,7 +187,7 @@
|
|||||||
identification within third-party archives.
|
identification within third-party archives.
|
||||||
|
|
||||||
Copyright 2018-2021 何冠峰
|
Copyright 2018-2021 何冠峰
|
||||||
Copyright 2021-2023 TuYoo Games
|
Copyright 2021-2025 TuYoo Games
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
@ -40,10 +40,20 @@ namespace YooAsset
|
|||||||
else
|
else
|
||||||
url = StringUtility.Format("jar:file://{0}", path);
|
url = StringUtility.Format("jar:file://{0}", path);
|
||||||
#elif UNITY_OPENHARMONY
|
#elif UNITY_OPENHARMONY
|
||||||
|
if (UnityEngine.Application.streamingAssetsPath.StartsWith("jar:file://"))
|
||||||
|
{
|
||||||
if (path.StartsWith("jar:file://"))
|
if (path.StartsWith("jar:file://"))
|
||||||
url = path;
|
url = path;
|
||||||
else
|
else
|
||||||
url = StringUtility.Format("jar:file://{0}", path);
|
url = StringUtility.Format("jar:file://{0}", path);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (path.StartsWith("file://"))
|
||||||
|
url = path;
|
||||||
|
else
|
||||||
|
url = StringUtility.Format("file://{0}", path);
|
||||||
|
}
|
||||||
#elif UNITY_STANDALONE_OSX
|
#elif UNITY_STANDALONE_OSX
|
||||||
url = new System.Uri(path).ToString();
|
url = new System.Uri(path).ToString();
|
||||||
#elif UNITY_STANDALONE
|
#elif UNITY_STANDALONE
|
||||||
|
8
Runtime/PakcageInvokeBuilder.meta
Normal file
8
Runtime/PakcageInvokeBuilder.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0c4881e782cbf0d4aa6f8309efd22865
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
38
Runtime/PakcageInvokeBuilder/PakcageInvokeBuildParam.cs
Normal file
38
Runtime/PakcageInvokeBuilder/PakcageInvokeBuildParam.cs
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
|
||||||
|
namespace YooAsset
|
||||||
|
{
|
||||||
|
public class PackageInvokeBuildParam
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 包裹名称
|
||||||
|
/// </summary>
|
||||||
|
public readonly string PackageName;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 构建管线名称
|
||||||
|
/// </summary>
|
||||||
|
public string BuildPipelineName;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 构建类所属程序集名称
|
||||||
|
/// </summary>
|
||||||
|
public string InvokeAssmeblyName;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 构建执行的类名全称
|
||||||
|
/// 注意:类名必须包含命名空间!
|
||||||
|
/// </summary>
|
||||||
|
public string InvokeClassFullName;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 构建执行的方法名称
|
||||||
|
/// 注意:执行方法必须满足 BindingFlags.Public | BindingFlags.Static
|
||||||
|
/// </summary>
|
||||||
|
public string InvokeMethodName;
|
||||||
|
|
||||||
|
public PackageInvokeBuildParam(string packageName)
|
||||||
|
{
|
||||||
|
PackageName = packageName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
namespace YooAsset
|
namespace YooAsset
|
||||||
{
|
{
|
||||||
public class EditorSimulateBuildResult
|
public class PackageInvokeBuildResult
|
||||||
{
|
{
|
||||||
public string PackageRootDirectory;
|
public string PackageRootDirectory;
|
||||||
}
|
}
|
43
Runtime/PakcageInvokeBuilder/PakcageInvokeBuilder.cs
Normal file
43
Runtime/PakcageInvokeBuilder/PakcageInvokeBuilder.cs
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
#if UNITY_EDITOR
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
namespace YooAsset
|
||||||
|
{
|
||||||
|
public static class PakcageInvokeBuilder
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 调用Editro类来执行构建资源包任务
|
||||||
|
/// </summary>
|
||||||
|
public static PackageInvokeBuildResult InvokeBuilder(PackageInvokeBuildParam buildParam)
|
||||||
|
{
|
||||||
|
var assemblyName = buildParam.InvokeAssmeblyName;
|
||||||
|
var className = buildParam.InvokeClassFullName;
|
||||||
|
var methodName = buildParam.InvokeMethodName;
|
||||||
|
var classType = Assembly.Load(assemblyName).GetType(className);
|
||||||
|
return (PackageInvokeBuildResult)InvokePublicStaticMethod(classType, methodName, buildParam);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static object InvokePublicStaticMethod(System.Type type, string method, params object[] parameters)
|
||||||
|
{
|
||||||
|
var methodInfo = type.GetMethod(method, BindingFlags.Public | BindingFlags.Static);
|
||||||
|
if (methodInfo == null)
|
||||||
|
{
|
||||||
|
UnityEngine.Debug.LogError($"{type.FullName} not found method : {method}");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return methodInfo.Invoke(null, parameters);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
namespace YooAsset
|
||||||
|
{
|
||||||
|
public static class PakcageInvokeBuilder
|
||||||
|
{
|
||||||
|
public static PackageInvokeBuildResult InvokeBuilder(PackageInvokeBuildParam buildParam)
|
||||||
|
{
|
||||||
|
throw new System.Exception("Only support in unity editor platform !");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
11
Runtime/PakcageInvokeBuilder/PakcageInvokeBuilder.cs.meta
Normal file
11
Runtime/PakcageInvokeBuilder/PakcageInvokeBuilder.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5b09fe4b7aa2d2143bc538976541b039
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -1,38 +0,0 @@
|
|||||||
|
|
||||||
namespace YooAsset
|
|
||||||
{
|
|
||||||
public class EditorSimulateBuildParam
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 包裹名称
|
|
||||||
/// </summary>
|
|
||||||
public readonly string PackageName;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 模拟构建管线名称
|
|
||||||
/// </summary>
|
|
||||||
public string BuildPipelineName = "EditorSimulateBuildPipeline";
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 模拟构建类所属程序集名称
|
|
||||||
/// </summary>
|
|
||||||
public string InvokeAssmeblyName = "YooAsset.Editor";
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 模拟构建执行的类名全称
|
|
||||||
/// 注意:类名必须包含命名空间!
|
|
||||||
/// </summary>
|
|
||||||
public string InvokeClassFullName = "YooAsset.Editor.AssetBundleSimulateBuilder";
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 模拟构建执行的方法名称
|
|
||||||
/// 注意:执行方法必须满足 BindingFlags.Public | BindingFlags.Static
|
|
||||||
/// </summary>
|
|
||||||
public string InvokeMethodName = "SimulateBuild";
|
|
||||||
|
|
||||||
public EditorSimulateBuildParam(string packageName)
|
|
||||||
{
|
|
||||||
PackageName = packageName;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,43 +1,16 @@
|
|||||||
#if UNITY_EDITOR
|
|
||||||
using System.Reflection;
|
|
||||||
|
|
||||||
namespace YooAsset
|
namespace YooAsset
|
||||||
{
|
{
|
||||||
public static class EditorSimulateModeHelper
|
public class EditorSimulateModeHelper
|
||||||
{
|
{
|
||||||
/// <summary>
|
public static PackageInvokeBuildResult SimulateBuild(string packageName)
|
||||||
/// 编辑器下模拟构建清单
|
|
||||||
/// </summary>
|
|
||||||
public static EditorSimulateBuildResult SimulateBuild(EditorSimulateBuildParam buildParam)
|
|
||||||
{
|
{
|
||||||
var assemblyName = buildParam.InvokeAssmeblyName;
|
var buildParam = new PackageInvokeBuildParam(packageName);
|
||||||
var className = buildParam.InvokeClassFullName;
|
buildParam.BuildPipelineName = "EditorSimulateBuildPipeline";
|
||||||
var methodName = buildParam.InvokeMethodName;
|
buildParam.InvokeAssmeblyName = "YooAsset.Editor";
|
||||||
var classType = Assembly.Load(assemblyName).GetType(className);
|
buildParam.InvokeClassFullName = "YooAsset.Editor.AssetBundleSimulateBuilder";
|
||||||
return (EditorSimulateBuildResult)InvokePublicStaticMethod(classType, methodName, buildParam);
|
buildParam.InvokeMethodName = "SimulateBuild";
|
||||||
}
|
return PakcageInvokeBuilder.InvokeBuilder(buildParam);
|
||||||
|
|
||||||
private static object InvokePublicStaticMethod(System.Type type, string method, params object[] parameters)
|
|
||||||
{
|
|
||||||
var methodInfo = type.GetMethod(method, BindingFlags.Public | BindingFlags.Static);
|
|
||||||
if (methodInfo == null)
|
|
||||||
{
|
|
||||||
UnityEngine.Debug.LogError($"{type.FullName} not found method : {method}");
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return methodInfo.Invoke(null, parameters);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
namespace YooAsset
|
|
||||||
{
|
|
||||||
public static class EditorSimulateModeHelper
|
|
||||||
{
|
|
||||||
public static EditorSimulateBuildResult SimulateBuild(EditorSimulateBuildParam buildParam)
|
|
||||||
{
|
|
||||||
throw new System.Exception("Only support in unity editor !");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 5b09fe4b7aa2d2143bc538976541b039
|
guid: b0a23f529c8bf4943a371ee6b360e698
|
||||||
MonoImporter:
|
MonoImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
225
Runtime/link.xml
225
Runtime/link.xml
@ -1,225 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<linker>
|
|
||||||
<assembly fullname="YooAsset.Runtime" preserve="all">
|
|
||||||
<type fullname="YooAsset.AssetHandle" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.HandleBase" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.RawFileHandle" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.SceneHandle" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.ByteGameFileSystem" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.ByteGameFileSystemCreater" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.BGFSRequestPackageVersionOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.BGFSLoadPackageManifestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.BGFSLoadBundleOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.BGFSInitializeOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.BGFSDownloadFileOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.RequestByteGamePackageVersionOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.RequestByteGamePackageHashOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.LoadByteGamePackageManifestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.WechatFileSystem" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.WechatFileSystemCreater" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.WXFSRequestPackageVersionOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.WXFSLoadPackageManifestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.WXFSLoadBundleOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.WXFSInitializeOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.WXFSDownloadFileOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.RequestWechatPackageVersionOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.RequestWechatPackageHashOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.LoadWechatPackageManifestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.AllAssetsHandle" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.ApplicationFootPrint" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.AssetHandle" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.AssetInfo" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.AsyncOperationBase" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.BufferReader" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.BufferWriter" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.BundledAllAssetsProvider" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.BundledAssetProvider" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.BundledRawFileProvider" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.BundledSceneProvider" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.BundledSubAssetsProvider" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.BundleInfo" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.CacheFileElement" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.ClearAllBundleFilesImplOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.ClearAllBundleFilesOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.ClearUnusedBundleFilesImplOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.ClearUnusedBundleFilesOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.CompletedProvider" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.CRC32Algorithm" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DatabaseAllAssetsProvider" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DatabaseAssetProvider" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DatabaseRawFileProvider" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DatabaseSceneProvider" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DatabaseSubAssetsProvider" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DBFSInitializeOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DBFSLoadAssetBundleOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DBFSLoadPackageManifestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DBFSLoadRawBundleOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DBFSRequestPackageVersionOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DCFSClearAllBundleFilesOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DCFSClearUnusedBundleFilesOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DCFSDownloadNormalFileOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DCFSDownloadResumeFileOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DCFSInitializeOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DCFSLoadAssetBundleOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DCFSLoadPackageManifestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DCFSLoadRawBundleOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DCFSRequestPackageVersionOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DebugBundleInfo" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DebugPackageData" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DebugProviderInfo" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DebugReport" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DecryptFileInfo" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DefaultBuildinFileCatalog" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DefaultBuildinFileCatalog.FileWrapper" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DefaultBuildinFileSystem" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DefaultBuildinFileSystem.FileWrapper" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DefaultBuildinFileSystemDefine" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DefaultCacheFileSystem" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DefaultCacheFileSystem.FileWrapper" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DefaultCacheFileSystemDefine" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DefaultDownloadFileOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DefaultEditorFileSystem" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DefaultEditorFileSystemDefine" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DefaultUnpackFileSystem" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DefaultUnpackFileSystemDefine" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DefaultWebFileSystem" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DefaultWebFileSystem.FileWrapper" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DEFSInitializeOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DEFSLoadBundleOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DEFSLoadPackageManifestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DEFSRequestPackageVersionOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DeserializeManifestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DestroyOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DownloaderOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DownloaderOperation.OnDownloadError" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DownloaderOperation.OnDownloadOver" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DownloaderOperation.OnDownloadProgress" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DownloaderOperation.OnStartDownloadFile" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DownloadHandlerAssetBundleOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DownloadHandlerFileRange" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DownloadPackageHashOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DownloadPackageManifestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DownloadParam" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DownloadStatus" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DownloadSystemHelper" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DWFSInitializeOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DWFSLoadAssetBundleOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DWFSLoadPackageManifestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.DWFSRequestPackageVersionOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.EDefaultBuildPipeline" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.EditorSimulateModeHelper" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.EditorSimulateModeImpl" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.EditorSimulateModeInitializationOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.EditorSimulateModeParameters" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.EditorSimulateModePreDownloadContentOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.EFileVerifyLevel" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.EFileVerifyResult" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.EncryptFileInfo" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.EncryptResult" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.EOperationStatus" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.EPlayMode" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.ERemoteCommand" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.FileSystemHelper" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.FileSystemParameters" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.FileSystemParametersDefine" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.FileUtility" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.FSClearAllBundleFilesCompleteOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.FSClearAllBundleFilesOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.FSClearUnusedBundleFilesCompleteOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.FSClearUnusedBundleFilesOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.FSDownloadFileOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.FSInitializeFileSystemOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.FSLoadBundleOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.FSLoadPackageManifestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.FSRequestPackageVersionOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.GameAsyncOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.HandleBase" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.HashUtility" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.HostPlayModeImpl" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.HostPlayModeInitializationOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.HostPlayModeParameters" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.HostPlayModePreDownloadContentOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.IBundleQuery" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.IDecryptionServices" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.IEncryptionServices" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.IFileSystem" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.ILogger" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.InitializationOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.InitializeParameters" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.InstantiateOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.IPlayMode" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.IRemoteServices" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.LoadBuildinCatalogFileOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.LoadBuildinPackageManifestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.LoadBundleFileOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.LoadCachePackageHashOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.LoadCachePackageManifestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.LoadDependBundleFileOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.LoadEditorPackageHashOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.LoadEditorPackageManifestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.LoadEditorPackageVersionOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.LoadWebCatalogFileOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.LoadWebPackageManifestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.ManifestTools" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.OfflinePlayModeImpl" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.OfflinePlayModeInitializationOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.OfflinePlayModeParameters" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.OfflinePlayModePreDownloadContentOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.OperationSystem" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.PackageAsset" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.PackageBundle" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.PackageManifest" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.PathUtility" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.PlayModeHelper" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.PreDownloadContentOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.ProviderOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.RawBundle" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.RawFileHandle" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.RemoteCommand" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.RemoteDebuggerDefine" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.RemoteDebuggerInRuntime" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.RequestBuildinPackageHashOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.RequestBuildinPackageVersionOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.RequestPackageVersionImplOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.RequestPackageVersionOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.RequestRemotePackageVersionOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.RequestWebPackageHashOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.RequestWebPackageVersionOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.ResourceDownloaderOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.ResourceImporterOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.ResourceManager" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.ResourcePackage" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.ResourceUnpackerOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.SafeProxy" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.SceneHandle" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.SearchCacheFilesOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.SimulateBuildResult" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.StringUtility" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.SubAssetsHandle" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.TempFileElement" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.ThreadSyncContext" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.UnityWebDataRequestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.UnityWebFileRequestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.UnityWebRequestDelegate" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.UnityWebRequestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.UnityWebTextRequestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.UnloadAllAssetsOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.UnloadSceneOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.UnloadUnusedAssetsOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.UpdatePackageManifestImplOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.UpdatePackageManifestOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.VerifyCacheFilesOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.VerifyTempFileOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.WebPlayModeImpl" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.WebPlayModeInitializationOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.WebPlayModeParameters" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.WebPlayModePreDownloadContentOperation" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.WebRequestCounter" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.YooAssetCroppingHelper" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.YooAssets" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.YooAssetsDriver" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.YooAssetSettings" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.YooAssetSettingsData" preserve="all"/>
|
|
||||||
<type fullname="YooAsset.YooLogger" preserve="all"/>
|
|
||||||
</assembly>
|
|
||||||
</linker>
|
|
@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: a3e1f44783da4e81a5e043f353ec89f1
|
|
||||||
timeCreated: 1725695549
|
|
@ -110,9 +110,9 @@ internal class ByteGameFileSystem : IFileSystem
|
|||||||
OperationSystem.StartOperation(PackageName, operation);
|
OperationSystem.StartOperation(PackageName, operation);
|
||||||
return operation;
|
return operation;
|
||||||
}
|
}
|
||||||
public virtual FSClearCacheBundleFilesOperation ClearCacheBundleFilesAsync(PackageManifest manifest, string clearMode, object clearParam)
|
public virtual FSClearCacheFilesOperation ClearCacheFilesAsync(PackageManifest manifest, string clearMode, object clearParam)
|
||||||
{
|
{
|
||||||
var operation = new FSClearCacheBundleFilesCompleteOperation(null);
|
var operation = new FSClearCacheFilesCompleteOperation();
|
||||||
OperationSystem.StartOperation(PackageName, operation);
|
OperationSystem.StartOperation(PackageName, operation);
|
||||||
return operation;
|
return operation;
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ internal class LoadByteGamePackageManifestOperation : AsyncOperationBase
|
|||||||
|
|
||||||
if (_steps == ESteps.VerifyFileData)
|
if (_steps == ESteps.VerifyFileData)
|
||||||
{
|
{
|
||||||
string fileHash = HashUtility.BytesMD5(_webDataRequestOp.Result);
|
string fileHash = HashUtility.BytesCRC32(_webDataRequestOp.Result);
|
||||||
if (fileHash == _packageHash)
|
if (fileHash == _packageHash)
|
||||||
{
|
{
|
||||||
_steps = ESteps.LoadManifest;
|
_steps = ESteps.LoadManifest;
|
||||||
@ -82,7 +82,7 @@ internal class LoadByteGamePackageManifestOperation : AsyncOperationBase
|
|||||||
{
|
{
|
||||||
_steps = ESteps.Done;
|
_steps = ESteps.Done;
|
||||||
Status = EOperationStatus.Failed;
|
Status = EOperationStatus.Failed;
|
||||||
Error = "Failed to verify wechat package manifest file!";
|
Error = "Failed to verify package manifest file!";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ using UnityEngine;
|
|||||||
using YooAsset;
|
using YooAsset;
|
||||||
using WeChatWASM;
|
using WeChatWASM;
|
||||||
|
|
||||||
internal class WXFSClearAllBundleFilesOperation : FSClearCacheBundleFilesOperation
|
internal class WXFSClearAllBundleFilesOperation : FSClearCacheFilesOperation
|
||||||
{
|
{
|
||||||
private enum ESteps
|
private enum ESteps
|
||||||
{
|
{
|
||||||
|
@ -6,7 +6,7 @@ using YooAsset;
|
|||||||
using WeChatWASM;
|
using WeChatWASM;
|
||||||
|
|
||||||
|
|
||||||
internal class WXFSClearUnusedBundleFilesAsync : FSClearCacheBundleFilesOperation
|
internal class WXFSClearUnusedBundleFilesAsync : FSClearCacheFilesOperation
|
||||||
{
|
{
|
||||||
private enum ESteps
|
private enum ESteps
|
||||||
{
|
{
|
||||||
|
@ -73,7 +73,7 @@ internal class LoadWechatPackageManifestOperation : AsyncOperationBase
|
|||||||
|
|
||||||
if (_steps == ESteps.VerifyFileData)
|
if (_steps == ESteps.VerifyFileData)
|
||||||
{
|
{
|
||||||
string fileHash = HashUtility.BytesMD5(_webDataRequestOp.Result);
|
string fileHash = HashUtility.BytesCRC32(_webDataRequestOp.Result);
|
||||||
if (fileHash == _packageHash)
|
if (fileHash == _packageHash)
|
||||||
{
|
{
|
||||||
_steps = ESteps.LoadManifest;
|
_steps = ESteps.LoadManifest;
|
||||||
@ -82,7 +82,7 @@ internal class LoadWechatPackageManifestOperation : AsyncOperationBase
|
|||||||
{
|
{
|
||||||
_steps = ESteps.Done;
|
_steps = ESteps.Done;
|
||||||
Status = EOperationStatus.Failed;
|
Status = EOperationStatus.Failed;
|
||||||
Error = "Failed to verify wechat package manifest file!";
|
Error = "Failed to verify package manifest file!";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ internal class WechatFileSystem : IFileSystem
|
|||||||
OperationSystem.StartOperation(PackageName, operation);
|
OperationSystem.StartOperation(PackageName, operation);
|
||||||
return operation;
|
return operation;
|
||||||
}
|
}
|
||||||
public virtual FSClearCacheBundleFilesOperation ClearCacheBundleFilesAsync(PackageManifest manifest, string clearMode, object clearParam)
|
public virtual FSClearCacheFilesOperation ClearCacheFilesAsync(PackageManifest manifest, string clearMode, object clearParam)
|
||||||
{
|
{
|
||||||
if (clearMode == EFileClearMode.ClearAllBundleFiles.ToString())
|
if (clearMode == EFileClearMode.ClearAllBundleFiles.ToString())
|
||||||
{
|
{
|
||||||
@ -132,7 +132,7 @@ internal class WechatFileSystem : IFileSystem
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
string error = $"Invalid clear mode : {clearMode}";
|
string error = $"Invalid clear mode : {clearMode}";
|
||||||
var operation = new FSClearCacheBundleFilesCompleteOperation(error);
|
var operation = new FSClearCacheFilesCompleteOperation(error);
|
||||||
OperationSystem.StartOperation(PackageName, operation);
|
OperationSystem.StartOperation(PackageName, operation);
|
||||||
return operation;
|
return operation;
|
||||||
}
|
}
|
||||||
|
@ -40,9 +40,8 @@ internal class FsmInitializePackage : IStateNode
|
|||||||
InitializationOperation initializationOperation = null;
|
InitializationOperation initializationOperation = null;
|
||||||
if (playMode == EPlayMode.EditorSimulateMode)
|
if (playMode == EPlayMode.EditorSimulateMode)
|
||||||
{
|
{
|
||||||
var simulateBuildParam = new EditorSimulateBuildParam(packageName);
|
var buildResult = EditorSimulateModeHelper.SimulateBuild(packageName);
|
||||||
var simulateBuildResult = EditorSimulateModeHelper.SimulateBuild(simulateBuildParam);
|
var packageRoot = buildResult.PackageRootDirectory;
|
||||||
var packageRoot = simulateBuildResult.PackageRootDirectory;
|
|
||||||
var createParameters = new EditorSimulateModeParameters();
|
var createParameters = new EditorSimulateModeParameters();
|
||||||
createParameters.EditorFileSystemParameters = FileSystemParameters.CreateDefaultEditorFileSystemParameters(packageRoot);
|
createParameters.EditorFileSystemParameters = FileSystemParameters.CreateDefaultEditorFileSystemParameters(packageRoot);
|
||||||
initializationOperation = package.InitializeAsync(createParameters);
|
initializationOperation = package.InitializeAsync(createParameters);
|
||||||
|
@ -3,12 +3,12 @@ using UnityEngine;
|
|||||||
using YooAsset;
|
using YooAsset;
|
||||||
using YooAsset.Editor;
|
using YooAsset.Editor;
|
||||||
|
|
||||||
public static class TestSimulateBuilder
|
public static class TestPackageBuilder
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 模拟构建
|
/// 构建资源包
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static EditorSimulateBuildResult SimulateBuild(EditorSimulateBuildParam buildParam)
|
public static PackageInvokeBuildResult BuildPackage(PackageInvokeBuildParam buildParam)
|
||||||
{
|
{
|
||||||
string packageName = buildParam.PackageName;
|
string packageName = buildParam.PackageName;
|
||||||
string buildPipelineName = buildParam.BuildPipelineName;
|
string buildPipelineName = buildParam.BuildPipelineName;
|
||||||
@ -31,7 +31,7 @@ public static class TestSimulateBuilder
|
|||||||
BuildResult buildResult = pipeline.Run(buildParameters, false);
|
BuildResult buildResult = pipeline.Run(buildParameters, false);
|
||||||
if (buildResult.Success)
|
if (buildResult.Success)
|
||||||
{
|
{
|
||||||
var reulst = new EditorSimulateBuildResult();
|
var reulst = new PackageInvokeBuildResult();
|
||||||
reulst.PackageRootDirectory = buildResult.OutputPackageDirectory;
|
reulst.PackageRootDirectory = buildResult.OutputPackageDirectory;
|
||||||
return reulst;
|
return reulst;
|
||||||
}
|
}
|
||||||
@ -64,7 +64,7 @@ public static class TestSimulateBuilder
|
|||||||
BuildResult buildResult = pipeline.Run(buildParameters, false);
|
BuildResult buildResult = pipeline.Run(buildParameters, false);
|
||||||
if (buildResult.Success)
|
if (buildResult.Success)
|
||||||
{
|
{
|
||||||
var reulst = new EditorSimulateBuildResult();
|
var reulst = new PackageInvokeBuildResult();
|
||||||
reulst.PackageRootDirectory = buildResult.OutputPackageDirectory;
|
reulst.PackageRootDirectory = buildResult.OutputPackageDirectory;
|
||||||
return reulst;
|
return reulst;
|
||||||
}
|
}
|
||||||
@ -97,7 +97,7 @@ public static class TestSimulateBuilder
|
|||||||
BuildResult buildResult = pipeline.Run(buildParameters, false);
|
BuildResult buildResult = pipeline.Run(buildParameters, false);
|
||||||
if (buildResult.Success)
|
if (buildResult.Success)
|
||||||
{
|
{
|
||||||
var reulst = new EditorSimulateBuildResult();
|
var reulst = new PackageInvokeBuildResult();
|
||||||
reulst.PackageRootDirectory = buildResult.OutputPackageDirectory;
|
reulst.PackageRootDirectory = buildResult.OutputPackageDirectory;
|
||||||
return reulst;
|
return reulst;
|
||||||
}
|
}
|
||||||
@ -128,7 +128,7 @@ public static class TestSimulateBuilder
|
|||||||
BuildResult buildResult = pipeline.Run(buildParameters, false);
|
BuildResult buildResult = pipeline.Run(buildParameters, false);
|
||||||
if (buildResult.Success)
|
if (buildResult.Success)
|
||||||
{
|
{
|
||||||
var reulst = new EditorSimulateBuildResult();
|
var reulst = new PackageInvokeBuildResult();
|
||||||
reulst.PackageRootDirectory = buildResult.OutputPackageDirectory;
|
reulst.PackageRootDirectory = buildResult.OutputPackageDirectory;
|
||||||
return reulst;
|
return reulst;
|
||||||
}
|
}
|
@ -60,6 +60,17 @@ public static class AssetBundleCollectorMaker
|
|||||||
YooAsset.Editor.AssetBundleCollectorSettingData.CreateCollector(spriteGroup, collector2);
|
YooAsset.Editor.AssetBundleCollectorSettingData.CreateCollector(spriteGroup, collector2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 面板
|
||||||
|
var panelGroup = YooAsset.Editor.AssetBundleCollectorSettingData.CreateGroup(testPackage, "PanelGroup");
|
||||||
|
{
|
||||||
|
var collector1 = new YooAsset.Editor.AssetBundleCollector();
|
||||||
|
collector1.CollectPath = "";
|
||||||
|
collector1.CollectorGUID = "4e9a00d6e825d644b9be75155d88daa6"; //TestRes/Panel目录
|
||||||
|
collector1.CollectorType = YooAsset.Editor.ECollectorType.MainAssetCollector;
|
||||||
|
collector1.PackRuleName = nameof(YooAsset.Editor.PackSeparately);
|
||||||
|
YooAsset.Editor.AssetBundleCollectorSettingData.CreateCollector(panelGroup, collector1);
|
||||||
|
}
|
||||||
|
|
||||||
// 预制体
|
// 预制体
|
||||||
var prefabGroup = YooAsset.Editor.AssetBundleCollectorSettingData.CreateGroup(testPackage, "PrefabGroup");
|
var prefabGroup = YooAsset.Editor.AssetBundleCollectorSettingData.CreateGroup(testPackage, "PrefabGroup");
|
||||||
{
|
{
|
||||||
|
@ -19,23 +19,23 @@ public class BuildinFileSystemTester : IPrebuildSetup, IPostBuildCleanup
|
|||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
// 构建TestPackage
|
// 构建TestPackage
|
||||||
{
|
{
|
||||||
var simulateParams = new EditorSimulateBuildParam(AssetBundleCollectorDefine.TestPackageName);
|
var buildParams = new PackageInvokeBuildParam(AssetBundleCollectorDefine.TestPackageName);
|
||||||
simulateParams.BuildPipelineName = "ScriptableBuildPipeline";
|
buildParams.BuildPipelineName = "ScriptableBuildPipeline";
|
||||||
simulateParams.InvokeAssmeblyName = "YooAsset.Test.Editor";
|
buildParams.InvokeAssmeblyName = "YooAsset.Test.Editor";
|
||||||
simulateParams.InvokeClassFullName = "TestSimulateBuilder";
|
buildParams.InvokeClassFullName = "TestPackageBuilder";
|
||||||
simulateParams.InvokeMethodName = "SimulateBuild";
|
buildParams.InvokeMethodName = "BuildPackage";
|
||||||
var simulateResult = EditorSimulateModeHelper.SimulateBuild(simulateParams);
|
var simulateResult = PakcageInvokeBuilder.InvokeBuilder(buildParams);
|
||||||
UnityEditor.EditorPrefs.SetString(BFS_TEST_PACKAGE_ROOT_KEY, simulateResult.PackageRootDirectory);
|
UnityEditor.EditorPrefs.SetString(BFS_TEST_PACKAGE_ROOT_KEY, simulateResult.PackageRootDirectory);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 构建RawPackage
|
// 构建RawPackage
|
||||||
{
|
{
|
||||||
var simulateParams = new EditorSimulateBuildParam(AssetBundleCollectorDefine.RawPackageName);
|
var buildParams = new PackageInvokeBuildParam(AssetBundleCollectorDefine.RawPackageName);
|
||||||
simulateParams.BuildPipelineName = "RawFileBuildPipeline";
|
buildParams.BuildPipelineName = "RawFileBuildPipeline";
|
||||||
simulateParams.InvokeAssmeblyName = "YooAsset.Test.Editor";
|
buildParams.InvokeAssmeblyName = "YooAsset.Test.Editor";
|
||||||
simulateParams.InvokeClassFullName = "TestSimulateBuilder";
|
buildParams.InvokeClassFullName = "TestPackageBuilder";
|
||||||
simulateParams.InvokeMethodName = "SimulateBuild";
|
buildParams.InvokeMethodName = "BuildPackage";
|
||||||
var simulateResult = EditorSimulateModeHelper.SimulateBuild(simulateParams);
|
var simulateResult = PakcageInvokeBuilder.InvokeBuilder(buildParams);
|
||||||
UnityEditor.EditorPrefs.SetString(BFS_RAW_PACKAGE_ROOT_KEY, simulateResult.PackageRootDirectory);
|
UnityEditor.EditorPrefs.SetString(BFS_RAW_PACKAGE_ROOT_KEY, simulateResult.PackageRootDirectory);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -119,6 +119,13 @@ public class BuildinFileSystemTester : IPrebuildSetup, IPostBuildCleanup
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[UnityTest]
|
||||||
|
public IEnumerator TestLoadAsyncTask()
|
||||||
|
{
|
||||||
|
var tester = new TestLoadPanel();
|
||||||
|
yield return tester.RuntimeTester();
|
||||||
|
}
|
||||||
|
|
||||||
[UnityTest]
|
[UnityTest]
|
||||||
public IEnumerator TestLoadAudio()
|
public IEnumerator TestLoadAudio()
|
||||||
{
|
{
|
||||||
|
@ -19,23 +19,23 @@ public class EditorFileSystemTester : IPrebuildSetup, IPostBuildCleanup
|
|||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
// 构建TestPackage
|
// 构建TestPackage
|
||||||
{
|
{
|
||||||
var simulateParams = new EditorSimulateBuildParam(AssetBundleCollectorDefine.TestPackageName);
|
var simulateParams = new PackageInvokeBuildParam(AssetBundleCollectorDefine.TestPackageName);
|
||||||
simulateParams.BuildPipelineName = "EditorSimulateBuildPipeline";
|
simulateParams.BuildPipelineName = "EditorSimulateBuildPipeline";
|
||||||
simulateParams.InvokeAssmeblyName = "YooAsset.Test.Editor";
|
simulateParams.InvokeAssmeblyName = "YooAsset.Test.Editor";
|
||||||
simulateParams.InvokeClassFullName = "TestSimulateBuilder";
|
simulateParams.InvokeClassFullName = "TestPackageBuilder";
|
||||||
simulateParams.InvokeMethodName = "SimulateBuild";
|
simulateParams.InvokeMethodName = "BuildPackage";
|
||||||
var simulateResult = EditorSimulateModeHelper.SimulateBuild(simulateParams);
|
var simulateResult = PakcageInvokeBuilder.InvokeBuilder(simulateParams);
|
||||||
UnityEditor.EditorPrefs.SetString(EFS_TEST_PACKAGE_ROOT_KEY, simulateResult.PackageRootDirectory);
|
UnityEditor.EditorPrefs.SetString(EFS_TEST_PACKAGE_ROOT_KEY, simulateResult.PackageRootDirectory);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 构建RawPackage
|
// 构建RawPackage
|
||||||
{
|
{
|
||||||
var simulateParams = new EditorSimulateBuildParam(AssetBundleCollectorDefine.RawPackageName);
|
var simulateParams = new PackageInvokeBuildParam(AssetBundleCollectorDefine.RawPackageName);
|
||||||
simulateParams.BuildPipelineName = "EditorSimulateBuildPipeline";
|
simulateParams.BuildPipelineName = "EditorSimulateBuildPipeline";
|
||||||
simulateParams.InvokeAssmeblyName = "YooAsset.Test.Editor";
|
simulateParams.InvokeAssmeblyName = "YooAsset.Test.Editor";
|
||||||
simulateParams.InvokeClassFullName = "TestSimulateBuilder";
|
simulateParams.InvokeClassFullName = "TestPackageBuilder";
|
||||||
simulateParams.InvokeMethodName = "SimulateBuild";
|
simulateParams.InvokeMethodName = "BuildPackage";
|
||||||
var simulateResult = EditorSimulateModeHelper.SimulateBuild(simulateParams);
|
var simulateResult = PakcageInvokeBuilder.InvokeBuilder(simulateParams);
|
||||||
UnityEditor.EditorPrefs.SetString(EFS_RAW_PACKAGE_ROOT_KEY, simulateResult.PackageRootDirectory);
|
UnityEditor.EditorPrefs.SetString(EFS_RAW_PACKAGE_ROOT_KEY, simulateResult.PackageRootDirectory);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -148,6 +148,13 @@ public class EditorFileSystemTester : IPrebuildSetup, IPostBuildCleanup
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[UnityTest]
|
||||||
|
public IEnumerator TestLoadAsyncTask()
|
||||||
|
{
|
||||||
|
var tester = new TestLoadPanel();
|
||||||
|
yield return tester.RuntimeTester();
|
||||||
|
}
|
||||||
|
|
||||||
[UnityTest]
|
[UnityTest]
|
||||||
public IEnumerator TestLoadAudio()
|
public IEnumerator TestLoadAudio()
|
||||||
{
|
{
|
||||||
|
40
Samples~/Test Sample/Runtime/TestLoadPanel.cs
Normal file
40
Samples~/Test Sample/Runtime/TestLoadPanel.cs
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Text;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
using UnityEngine.U2D;
|
||||||
|
using UnityEngine.TestTools;
|
||||||
|
using NUnit.Framework;
|
||||||
|
using YooAsset;
|
||||||
|
|
||||||
|
public class TestLoadPanel
|
||||||
|
{
|
||||||
|
public IEnumerator RuntimeTester()
|
||||||
|
{
|
||||||
|
ResourcePackage package = YooAssets.GetPackage(AssetBundleCollectorDefine.TestPackageName);
|
||||||
|
Assert.IsNotNull(package);
|
||||||
|
|
||||||
|
// 异步加载面板
|
||||||
|
{
|
||||||
|
var assetsHandle = package.LoadAssetAsync<GameObject>("panel_canvas");
|
||||||
|
var handleTask = assetsHandle.Task;
|
||||||
|
while (!handleTask.IsCompleted)
|
||||||
|
yield return null;
|
||||||
|
yield return null;
|
||||||
|
Assert.AreEqual(EOperationStatus.Succeed, assetsHandle.Status);
|
||||||
|
|
||||||
|
var instantiateOp = assetsHandle.InstantiateAsync();
|
||||||
|
var operationTask = instantiateOp.Task;
|
||||||
|
while (!handleTask.IsCompleted)
|
||||||
|
yield return null;
|
||||||
|
yield return null;
|
||||||
|
Assert.AreEqual(EOperationStatus.Succeed, instantiateOp.Status);
|
||||||
|
|
||||||
|
Assert.IsNotNull(instantiateOp.Result);
|
||||||
|
TestLogger.Log(this, instantiateOp.Result.name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
Samples~/Test Sample/Runtime/TestLoadPanel.cs.meta
Normal file
11
Samples~/Test Sample/Runtime/TestLoadPanel.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3260bac2b14f0e949a2555a073cfb9fc
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
Samples~/Test Sample/TestRes/Panel.meta
Normal file
8
Samples~/Test Sample/TestRes/Panel.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 4e9a00d6e825d644b9be75155d88daa6
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
81
Samples~/Test Sample/TestRes/Panel/panel_a.prefab
Normal file
81
Samples~/Test Sample/TestRes/Panel/panel_a.prefab
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &6283027362666271047
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 2037322908504346998}
|
||||||
|
- component: {fileID: 7980853937325680292}
|
||||||
|
- component: {fileID: 8207247306684829080}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: panel_a
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &2037322908504346998
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6283027362666271047}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &7980853937325680292
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6283027362666271047}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &8207247306684829080
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6283027362666271047}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_FontData:
|
||||||
|
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_FontSize: 14
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 10
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 0
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text: this is panel a !
|
7
Samples~/Test Sample/TestRes/Panel/panel_a.prefab.meta
Normal file
7
Samples~/Test Sample/TestRes/Panel/panel_a.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d60a4c3149ab06b468e38b88612419d6
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
81
Samples~/Test Sample/TestRes/Panel/panel_b.prefab
Normal file
81
Samples~/Test Sample/TestRes/Panel/panel_b.prefab
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &6283027362666271047
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 2037322908504346998}
|
||||||
|
- component: {fileID: 7980853937325680292}
|
||||||
|
- component: {fileID: 8207247306684829080}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: panel_b
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &2037322908504346998
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6283027362666271047}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &7980853937325680292
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6283027362666271047}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &8207247306684829080
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6283027362666271047}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_FontData:
|
||||||
|
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_FontSize: 14
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 10
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 0
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text: this is panel b !
|
7
Samples~/Test Sample/TestRes/Panel/panel_b.prefab.meta
Normal file
7
Samples~/Test Sample/TestRes/Panel/panel_b.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 515c0ceab1fb10c4180748003da58232
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
70
Samples~/Test Sample/TestRes/Panel/panel_canvas.prefab
Normal file
70
Samples~/Test Sample/TestRes/Panel/panel_canvas.prefab
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &6283027362666271047
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 2037322908504346998}
|
||||||
|
- component: {fileID: 7980853937325680292}
|
||||||
|
- component: {fileID: -2226153785594138141}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: panel_canvas
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &2037322908504346998
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6283027362666271047}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &7980853937325680292
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6283027362666271047}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!223 &-2226153785594138141
|
||||||
|
Canvas:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6283027362666271047}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_RenderMode: 0
|
||||||
|
m_Camera: {fileID: 0}
|
||||||
|
m_PlaneDistance: 100
|
||||||
|
m_PixelPerfect: 0
|
||||||
|
m_ReceivesEvents: 1
|
||||||
|
m_OverrideSorting: 0
|
||||||
|
m_OverridePixelPerfect: 0
|
||||||
|
m_SortingBucketNormalizedSize: 0
|
||||||
|
m_VertexColorAlwaysGammaSpace: 1
|
||||||
|
m_AdditionalShaderChannelsFlag: 0
|
||||||
|
m_UpdateRectTransformForStandalone: 0
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_TargetDisplay: 0
|
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: bbefb050721c78a4fb44853720eaa76c
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -333,7 +333,6 @@ GameObject:
|
|||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 2032300069}
|
- component: {fileID: 2032300069}
|
||||||
- component: {fileID: 2032300068}
|
- component: {fileID: 2032300068}
|
||||||
- component: {fileID: 2032300067}
|
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: Main Camera
|
m_Name: Main Camera
|
||||||
m_TagString: MainCamera
|
m_TagString: MainCamera
|
||||||
@ -341,14 +340,6 @@ GameObject:
|
|||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 1
|
||||||
--- !u!81 &2032300067
|
|
||||||
AudioListener:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 2032300066}
|
|
||||||
m_Enabled: 1
|
|
||||||
--- !u!20 &2032300068
|
--- !u!20 &2032300068
|
||||||
Camera:
|
Camera:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "com.alicizax.unity.tuyoogame.yooasset",
|
"name": "com.alicizax.unity.tuyoogame.yooasset",
|
||||||
"displayName": "YooAsset",
|
"displayName": "YooAsset",
|
||||||
"version": "2.2.8-preview",
|
"version": "2.2.9",
|
||||||
"unity": "2019.4",
|
"unity": "2019.4",
|
||||||
"description": "unity3d resources management system.",
|
"description": "unity3d resources management system.",
|
||||||
"author": {
|
"author": {
|
||||||
|
Loading…
Reference in New Issue
Block a user