Skip to content

Commit

Permalink
1.3.112 1.小优化,完善文档
Browse files Browse the repository at this point in the history
  • Loading branch information
TippingGame committed Mar 9, 2025
1 parent c80b079 commit 146b689
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 15 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [1.3.112] - 2025-03-09
1.小优化,完善文档

## [1.3.111] - 2025-03-06
1.#32 修复ResourcesLoader中的三目运算符使用错误

## [1.3.110] - 2025-03-06
1.#32 的优化
2.打包的AssetBundles复制到Assets外Bundles内,并且加上平台名进行区分
Expand Down
1 change: 1 addition & 0 deletions Editor/AssetManager/ABBuildTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public static void BuildAllAB()
FileTools.SafeClearDir(outpath);
FileTools.CheckDirAndCreateWhenNeeded(outpath);
FileTools.SafeCopyDirectory(strABOutPAthDir, outpath, true);
AssetDatabase.Refresh();

// 等待AB打包完成,再写入数据
GenerateAssetNames(true);
Expand Down
2 changes: 1 addition & 1 deletion Editor/ExcelTool/ExcelDataTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private static void CreateAsmdefFile()

// 将内容写入.asmdef文件
FileTools.SafeWriteAllText(asmrefPath, asmdefContent);
LogF8.LogConfig("创建.asmdef文件 " + Application.dataPath + DLLFolder + "/" + "/<color=#FF9E59>" + CODE_NAMESPACE + ".asmdef" + "</color>");
LogF8.LogConfig("创建.asmdef文件 " + Application.dataPath + DLLFolder + "/<color=#FF9E59>" + CODE_NAMESPACE + ".asmdef" + "</color>");
}

public static void LoadAllExcelData()
Expand Down
22 changes: 12 additions & 10 deletions Runtime/AssetManager/ResourcesManager/ResourcesLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ public override T GetAssetObject<T>(string subAssetName = null)
}
else
{
if (subAssetName.IsNullOrEmpty())
{
return this.ResouceObject as T;
}
bool success = TryGetAsset(resourcePath + subAssetName, out Object obj);
if (success)
{
Expand Down Expand Up @@ -122,10 +118,6 @@ public override Object GetAssetObject(string subAssetName = null)
}
else
{
if (subAssetName.IsNullOrEmpty())
{
return this.ResouceObject;
}
bool success = TryGetAsset(resourcePath + subAssetName, out Object obj);
if (success)
{
Expand Down Expand Up @@ -362,6 +354,11 @@ void End(Object o = null)
public virtual T LoadAll<T>(string subAssetName = null)
where T : Object
{
if (!subAssetName.IsNullOrEmpty())
{
this.subAssetName = subAssetName;
}

if (resourceLoadState == LoaderState.FINISHED)
{
if (subAssetName.IsNullOrEmpty())
Expand Down Expand Up @@ -389,11 +386,16 @@ public virtual T LoadAll<T>(string subAssetName = null)
}
}
resourceLoadState = LoaderState.FINISHED;
return _resouceObject == null ? _resouceObject as T : resouceObject as T;
return _resouceObject != null ? _resouceObject as T : resouceObject as T;
}

public virtual Object LoadAll(System.Type assetType = default, string subAssetName = null)
{
if (!subAssetName.IsNullOrEmpty())
{
this.subAssetName = subAssetName;
}

if (resourceLoadState == LoaderState.FINISHED)
{
if (subAssetName.IsNullOrEmpty())
Expand Down Expand Up @@ -430,7 +432,7 @@ public virtual Object LoadAll(System.Type assetType = default, string subAssetNa
}
}
resourceLoadState = LoaderState.FINISHED;
return _resouceObject == null ? _resouceObject : resouceObject;
return _resouceObject != null ? _resouceObject : resouceObject;
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Tests/SDKManager/DemoSDK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void Start()
// SDK退出游戏
FF8.SDK.SDKExitGame();

// 播放视频广告
// 原生提示
FF8.SDK.SDKToast("Native Toast");
}
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/SDKManager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Unity F8 SDKManager组件,与原生平台交互,接入多个平台或者渠
// SDK退出游戏
FF8.SDK.SDKExitGame();

// 播放视频广告
// 原生提示
FF8.SDK.SDKToast("Native Toast");
```

Expand Down
2 changes: 1 addition & 1 deletion Tests/SDKManager/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Unity F8 SDKManager组件,与原生平台交互,接入多个平台或者渠
// SDK退出游戏
FF8.SDK.SDKExitGame();

// 播放视频广告
// 原生提示
FF8.SDK.SDKToast("Native Toast");
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.tippinggame.f8framework",
"displayName": "F8Framework",
"description": "Unity F8Framework Core",
"version": "1.3.110",
"version": "1.3.112",
"unity": "2021.3",
"license": "MIT",
"keywords": ["Unity", "Framework", "Core"],
Expand Down

0 comments on commit 146b689

Please sign in to comment.