Fix UGF resource packaging errors
资源构建失败是因为资源集合中包含了 AssemblyDefinitionAsset,并且 StreamingAssets 文件夹的创建行为间歇性出现。 此更改移除了资源打包输入中的脚本相关条目,并保留了跟踪的 StreamingAssets 支架文件,使得包输出可以重新生成而不会触发元/文件夹不匹配警告。 限制:Unity/UGF 打包不能在 AssetBundles 中包含 AssemblyDefinitionAsset 限制:StreamingAssets 内容应保持被忽略,而文件夹身份仍被追踪 禁止:保留脚本资源并依赖平台标识 | bundle 包包含 Editor-only 对象 可信:高 范围风险:狭窄 可逆性:干净 指令:不要将 .asmdef/.cs 资产添加到 ResourceCollection 中;只有 runtime 资产才能进入 bundle 测试:资源构建器打包运行完成,且没有之前的两个错误
This commit is contained in:
@@ -731,7 +731,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11499388, guid: adb3eb1c35fcff14f89fba7b05c9d71c, type: 3}
|
||||
propertyPath: m_EditorResourceMode
|
||||
value: 1
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 11499388, guid: adb3eb1c35fcff14f89fba7b05c9d71c, type: 3}
|
||||
propertyPath: m_JsonHelperTypeName
|
||||
@@ -853,7 +853,6 @@ MonoBehaviour:
|
||||
_showCollisionStats: 0
|
||||
_showSpawnControls: 1
|
||||
_showBattleDurationControls: 1
|
||||
_showSeparationSolverControls: 0
|
||||
_showPlayerWeaponControls: 1
|
||||
_showPlayerHealthControls: 1
|
||||
_showTips: 0
|
||||
@@ -1450,7 +1449,6 @@ MonoBehaviour:
|
||||
_projectileHitMarkerColor: {r: 1, g: 0, b: 0, a: 0.95}
|
||||
_projectileHitEffectEnabled: 0
|
||||
_projectileHitEffectTypeId: 0
|
||||
_useSimulationMovement: 1
|
||||
_collisionPipelineSettings:
|
||||
ProjectileCollisionQueryRadius: 0.35
|
||||
ProjectileMaxCandidatesPerQuery: 1
|
||||
|
||||
Reference in New Issue
Block a user