diff --git a/Assets/YooAsset/Runtime/FileSystem/DefaultBuildinFileSystem/Operation/DBFSInitializeOperation.cs b/Assets/YooAsset/Runtime/FileSystem/DefaultBuildinFileSystem/Operation/DBFSInitializeOperation.cs index 1ad7326..3369fdd 100644 --- a/Assets/YooAsset/Runtime/FileSystem/DefaultBuildinFileSystem/Operation/DBFSInitializeOperation.cs +++ b/Assets/YooAsset/Runtime/FileSystem/DefaultBuildinFileSystem/Operation/DBFSInitializeOperation.cs @@ -24,7 +24,13 @@ namespace YooAsset } internal override void InternalOnStart() { +#if UNITY_WEBGL + _steps = ESteps.Done; + Status = EOperationStatus.Failed; + Error = $"{nameof(DefaultBuildinFileSystem)} is not support WEBGL platform !"; +#else _steps = ESteps.InitUnpackFileSystem; +#endif } internal override void InternalOnUpdate() { diff --git a/Assets/YooAsset/Runtime/FileSystem/DefaultCacheFileSystem/Operation/DCFSInitializeOperation.cs b/Assets/YooAsset/Runtime/FileSystem/DefaultCacheFileSystem/Operation/DCFSInitializeOperation.cs index d27fb38..07aed4d 100644 --- a/Assets/YooAsset/Runtime/FileSystem/DefaultCacheFileSystem/Operation/DCFSInitializeOperation.cs +++ b/Assets/YooAsset/Runtime/FileSystem/DefaultCacheFileSystem/Operation/DCFSInitializeOperation.cs @@ -24,7 +24,13 @@ namespace YooAsset } internal override void InternalOnStart() { +#if UNITY_WEBGL + _steps = ESteps.Done; + Status = EOperationStatus.Failed; + Error = $"{nameof(DefaultCacheFileSystem)} is not support WEBGL platform !"; +#else _steps = ESteps.CheckAppFootPrint; +#endif } internal override void InternalOnUpdate() { diff --git a/Assets/YooAsset/Runtime/ResourcePackage/ResourcePackage.cs b/Assets/YooAsset/Runtime/ResourcePackage/ResourcePackage.cs index db315dc..31977fd 100644 --- a/Assets/YooAsset/Runtime/ResourcePackage/ResourcePackage.cs +++ b/Assets/YooAsset/Runtime/ResourcePackage/ResourcePackage.cs @@ -181,6 +181,8 @@ namespace YooAsset { _initializeStatus = op.Status; _initializeError = op.Error; + if (_initializeStatus != EOperationStatus.Succeed) + YooLogger.Error(_initializeError); } ///