Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
林新发
UnityXFramework
提交
72745de1
U
UnityXFramework
项目概览
林新发
/
UnityXFramework
通知
1399
Star
143
Fork
77
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
1
Wiki
分析
仓库
DevOps
项目成员
Pages
U
UnityXFramework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
1
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
72745de1
编写于
12月 10, 2021
作者:
林新发
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of codechina.csdn.net:linxinfa/UnityXFramework
上级
77634d11
2ca171d1
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
415 addition
and
401 deletion
+415
-401
Assembly-CSharp-Editor.csproj
Assembly-CSharp-Editor.csproj
+197
-200
Assembly-CSharp.csproj
Assembly-CSharp.csproj
+199
-190
Assets/Editor/ResConfig/ResConfigEditor.cs
Assets/Editor/ResConfig/ResConfigEditor.cs
+7
-5
Assets/Scenes/Main.unity
Assets/Scenes/Main.unity
+1
-1
Assets/Scripts/Framework/Resource/AssetBundleMgr.cs
Assets/Scripts/Framework/Resource/AssetBundleMgr.cs
+1
-3
Assets/updateZip.meta
Assets/updateZip.meta
+8
-0
ProjectSettings/ProjectVersion.txt
ProjectSettings/ProjectVersion.txt
+2
-2
obj/Debug/Assembly-CSharp-Editor.csproj.AssemblyReference.cache
...bug/Assembly-CSharp-Editor.csproj.AssemblyReference.cache
+0
-0
obj/Debug/Assembly-CSharp.csproj.AssemblyReference.cache
obj/Debug/Assembly-CSharp.csproj.AssemblyReference.cache
+0
-0
未找到文件。
Assembly-CSharp-Editor.csproj
浏览文件 @
72745de1
此差异已折叠。
点击以展开。
Assembly-CSharp.csproj
浏览文件 @
72745de1
此差异已折叠。
点击以展开。
Assets/Editor/ResConfig/ResConfigEditor.cs
浏览文件 @
72745de1
...
...
@@ -48,7 +48,8 @@ public class ResConfigEditor : EditorWindow
if
(
m_curObj
!=
m_lastObj
)
{
m_lastObj
=
m_curObj
;
m_operType
=
s_manager
.
exist
(
m_curObj
.
name
)
?
OperType
.
Update
:
OperType
.
Add
;
var
assetPath
=
AssetDatabase
.
GetAssetPath
(
m_curObj
);
m_operType
=
s_manager
.
ResIsConfiged
(
assetPath
)
?
OperType
.
Update
:
OperType
.
Add
;
string
path
=
AssetDatabase
.
GetAssetPath
(
m_curObj
);
if
(!
ResConfigManager
.
isPathRight
(
path
))
m_errorCode
=
ResEditorErrorCode
.
PathError
;
...
...
@@ -140,8 +141,8 @@ public class ResConfigManager
{
return
ResEditorErrorCode
.
ObjNull
;
}
if
(
exist
(
obj
.
name
))
return
ResEditorErrorCode
.
ResExist
;
var
assetPath
=
AssetDatabase
.
GetAssetPath
(
obj
);
if
(
ResIsConfiged
(
assetPath
))
return
ResEditorErrorCode
.
ResExist
;
string
path
=
AssetDatabase
.
GetAssetPath
(
obj
);
if
(!
isPathRight
(
path
))
return
ResEditorErrorCode
.
PathError
;
var
ret
=
ResEditorErrorCode
.
Ok
;
...
...
@@ -422,11 +423,12 @@ public class ResConfigManager
return
ResEditorErrorCode
.
Ok
;
}
public
bool
exist
(
string
name
)
public
bool
ResIsConfiged
(
string
assetPath
)
{
assetPath
=
assetPath
.
Replace
(
"Assets/GameRes/"
,
""
);
foreach
(
ResConfigItem
item
in
s_itemMap1
.
Values
)
{
if
(
item
!=
null
&&
name
.
Equals
(
item
.
name
))
if
(
item
!=
null
&&
assetPath
.
Equals
(
item
.
path
))
return
true
;
}
...
...
Assets/Scenes/Main.unity
浏览文件 @
72745de1
...
...
@@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity
:
1
m_CustomReflection
:
{
fileID
:
0
}
m_Sun
:
{
fileID
:
0
}
m_IndirectSpecularColor
:
{
r
:
0.373119
53
,
g
:
0.38074014
,
b
:
0.3587274
,
a
:
1
}
m_IndirectSpecularColor
:
{
r
:
0.373119
92
,
g
:
0.38074034
,
b
:
0.35872713
,
a
:
1
}
m_UseRadianceAmbientProbe
:
0
---
!u!157
&3
LightmapSettings
:
...
...
Assets/Scripts/Framework/Resource/AssetBundleMgr.cs
浏览文件 @
72745de1
...
...
@@ -49,9 +49,7 @@ public class AssetBundleMgr
}
if
(
null
!=
ab
)
{
var
assetName
=
fname
.
Substring
(
0
,
fname
.
IndexOf
(
"."
));
obj
=
ab
.
LoadAsset
<
Object
>(
assetName
);
GameLogger
.
LogGreen
(
"Load Asset From AssetBundle: assetName: "
+
assetName
);
obj
=
ab
.
LoadAsset
<
Object
>(
"Assets/GameRes/"
+
uri
);
}
#endif
...
...
Assets/updateZip.meta
0 → 100644
浏览文件 @
72745de1
fileFormatVersion: 2
guid: eb289fa176a70814d87d908cda424a2c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
ProjectSettings/ProjectVersion.txt
浏览文件 @
72745de1
m_EditorVersion: 2021.1.
7
f1c1
m_EditorVersionWithRevision: 2021.1.
7f1c1 (4e944ebb9621
)
m_EditorVersion: 2021.1.
9
f1c1
m_EditorVersionWithRevision: 2021.1.
9f1c1 (a9c352b271d7
)
obj/Debug/Assembly-CSharp-Editor.csproj.AssemblyReference.cache
浏览文件 @
72745de1
无法预览此类型文件
obj/Debug/Assembly-CSharp.csproj.AssemblyReference.cache
浏览文件 @
72745de1
无法预览此类型文件
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录