feat : webgl platform logs

pull/370/head
何冠峰 2024-09-02 11:29:01 +08:00
parent 7652de0129
commit 688f8ec26c
3 changed files with 14 additions and 0 deletions

View File

@ -24,7 +24,13 @@ namespace YooAsset
} }
internal override void InternalOnStart() 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; _steps = ESteps.InitUnpackFileSystem;
#endif
} }
internal override void InternalOnUpdate() internal override void InternalOnUpdate()
{ {

View File

@ -24,7 +24,13 @@ namespace YooAsset
} }
internal override void InternalOnStart() 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; _steps = ESteps.CheckAppFootPrint;
#endif
} }
internal override void InternalOnUpdate() internal override void InternalOnUpdate()
{ {

View File

@ -181,6 +181,8 @@ namespace YooAsset
{ {
_initializeStatus = op.Status; _initializeStatus = op.Status;
_initializeError = op.Error; _initializeError = op.Error;
if (_initializeStatus != EOperationStatus.Succeed)
YooLogger.Error(_initializeError);
} }
/// <summary> /// <summary>