Skip to content

Commit

Permalink
1.0.90 1.优化本地数据存储判空,2.修复编辑器功能,寻找资源引用没有清空数据的问题,3.修改文档中的下载地址
Browse files Browse the repository at this point in the history
  • Loading branch information
TippingGame committed Jan 4, 2025
1 parent 85c15ed commit e852541
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 16 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [1.0.90] - 2025-01-04
1.优化本地数据存储判空
2.修复编辑器功能,寻找资源引用没有清空数据的问题
3.修改文档中的下载地址

## [1.0.89] - 2024-12-27
1.完善Module文档

Expand Down
10 changes: 3 additions & 7 deletions Editor/AssetManager/AssetBeDepend.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,16 @@ namespace F8Framework.Core.Editor
public class AssetBeDepend
{
// 存储所有依赖关系
private static Dictionary<string, List<string>> referenceCacheDic;
private static Dictionary<string, List<string>> referenceCacheDic = new Dictionary<string, List<string>>();

private static List<string> referenceCacheList = new List<string>();

[MenuItem("Assets/(F8资产功能)/(寻找资源是否被引用)", false , 1010)]
private static void FindReferences()
{
referenceCacheList.Clear();
if (referenceCacheDic == null)
{
referenceCacheDic = new Dictionary<string, List<string>>();
CollectDepend();
}

referenceCacheDic.Clear();
CollectDepend();
// 获取所有选中 文件、文件夹的 GUID
string[] guids = Selection.assetGUIDs;
foreach (var guid in guids)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023-2024 TippingGame [email protected]
Copyright (c) 2023-2025 TippingGame [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 5 additions & 0 deletions Runtime/Storage/StorageManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ public T GetObject<T>(string key, bool user = false)
/// <param name="obj">要写入的对象。</param>
public void SetObject<T>(string key, T obj, bool user = false)
{
if (obj == null)
{
LogF8.LogError("本地数据存入对象不能为空");
return;
}
PlayerPrefs.SetString(GetKeywords(key, user), Util.LitJson.ToJson(obj));
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/CacheStorage/DemoCacheStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace F8Framework.Tests
{
public class DemoCacheStorage : MonoBehaviour
{
string url = "https://raw.githubusercontent.com/TippingGame/F8Framework/main/Tests/AssetManager/ui_20240216212631.png";
string url = "https://raw.githubusercontent.com/TippingGame/F8Framework/refs/heads/main/Tests/Logo.png";

void Start()
{
Expand Down
3 changes: 1 addition & 2 deletions Tests/Download/DemoDownload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ public class DemoDownload : MonoBehaviour
{
private string[] fileInfos = new[]
{
"https://raw.githubusercontent.com/TippingGame/F8Framework/main/Tests/AssetManager/ui_20240216212631.png",
"https://raw.githubusercontent.com/TippingGame/F8Framework/main/Tests/AssetManager/ui_20240205230012.png"
"https://raw.githubusercontent.com/TippingGame/F8Framework/refs/heads/main/Tests/Logo.png"
};

private Downloader downloader;
Expand Down
3 changes: 1 addition & 2 deletions Tests/Download/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ Unity F8 Download组件,支持localhost与http地址文件的下载,可**本
```C#
private string[] fileInfos = new[]
{
"https://raw.githubusercontent.com/TippingGame/F8Framework/main/Tests/AssetManager/ui_20240216212631.png",
"https://raw.githubusercontent.com/TippingGame/F8Framework/main/Tests/AssetManager/ui_20240205230012.png"
"https://raw.githubusercontent.com/TippingGame/F8Framework/refs/heads/main/Tests/Logo.png"
};

private Downloader downloader;
Expand Down
3 changes: 1 addition & 2 deletions Tests/Download/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ Unity F8 Download组件,支持localhost与http地址文件的下载,可**本
```C#
private string[] fileInfos = new[]
{
"https://raw.githubusercontent.com/TippingGame/F8Framework/main/Tests/AssetManager/ui_20240216212631.png",
"https://raw.githubusercontent.com/TippingGame/F8Framework/main/Tests/AssetManager/ui_20240205230012.png"
"https://raw.githubusercontent.com/TippingGame/F8Framework/refs/heads/main/Tests/Logo.png"
};

private Downloader downloader;
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.0.89",
"version": "1.0.90",
"unity": "2021.3",
"license": "MIT",
"keywords": ["Unity", "Framework", "Core"],
Expand Down

0 comments on commit e852541

Please sign in to comment.