惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
W
WeLiveSecurity
O
OpenAI News
N
News and Events Feed by Topic
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Webroot Blog
Webroot Blog
Google Online Security Blog
Google Online Security Blog
云风的 BLOG
云风的 BLOG
N
News | PayPal Newsroom
H
Hacker News: Front Page
博客园_首页
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
The Last Watchdog
The Last Watchdog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Heimdal Security Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Schneier on Security
宝玉的分享
宝玉的分享
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Y
Y Combinator Blog
Cyberwarzone
Cyberwarzone
Microsoft Security Blog
Microsoft Security Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
GbyAI
GbyAI
Cloudbric
Cloudbric
TaoSecurity Blog
TaoSecurity Blog
人人都是产品经理
人人都是产品经理
P
Palo Alto Networks Blog
M
MIT News - Artificial intelligence
G
GRAHAM CLULEY
C
Check Point Blog
Apple Machine Learning Research
Apple Machine Learning Research
Last Week in AI
Last Week in AI
T
Troy Hunt's Blog
L
Lohrmann on Cybersecurity
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Proofpoint News Feed
Blog — PlanetScale
Blog — PlanetScale
量子位
博客园 - 聂微东
S
Securelist
博客园 - 三生石上(FineUI控件)
F
Full Disclosure
G
Google Developers Blog
L
LINUX DO - 热门话题
P
Proofpoint News Feed
AI
AI
PCI Perspectives
PCI Perspectives

崎径 其镜

Unity CVE-2025-59489 漏洞修复实践(Google Play 合规) 从零配置 VS Code C++ 环境 力扣笔记 一文详解Hexo 博客搭建 Unity 游戏的 Google Play 16 kb页面对齐处理 Android Google Play 16 KB 页面对齐适配指南 iOS 应用开启包外存储访问(文件共享) xlua学习笔记 Lua新知 EFK日志分析系统的搭建 使用贝塞尔曲线实现道具随机飞动效果 震惊,JS不加分号会造成错误!? Linux升级Python Github图床工具 JS使用replace()函数全部替换 JS使用Splice()函数操作数组 当你的程序连接Mysql然后崩溃时 安卓应用闪屏 安卓各渠道SDK接入体验 某微信爬虫工具多开方案 U3D问题总结(七) lua U3D问题总结(六) 优化 U3D问题总结(五) 渲染与光照 U3D问题总结(四) 物理相关 U3D问题总结(三) Unity基础
Unity 升级到 2022 踩坑记录(URP / 黑屏 / HTTP)
Anqi Zhao · 2026-04-02 · via 崎径 其镜

记录项目从旧版本升级到 Unity 2022 过程中遇到的几个典型问题及解决方案。

问题一:Package Manager 只有 Remove 按钮,无法下载 URP

现象:升级 Unity 版本后,打开 Package Manager,URP 包只显示 Remove,点击后也无法重新下载安装。

原因:原项目对 URP 进行过源码修改,升级后残留了本地嵌入式包目录:

{项目根目录}/Packages/com.unity.render-pipelines.universal@xx.x.x

解决方案

  1. 删除 Packages/ 目录下的 com.unity.render-pipelines.universal@xx.x.x 文件夹
  2. Library/PackageCache/ 目录中找到对应版本的 URP 文件夹,复制到 Packages/ 目录下
  3. 将复制过来的文件夹名末尾的 @xx.x.x 版本后缀删除

这样插件就恢复为本地源码模式,可以正常编辑修改。


问题二:Android 出包运行黑屏,URP NullReferenceException

现象:升级后打出 APK,运行时黑屏,Logcat 报错:

Non-fatal Exception: java.lang.Exception: NullReferenceException : Object reference not set to an instance of an object.
at UnityEngine.Rendering.Universal.UniversalRenderPipeline.SetupPerFrameShaderConstants(...)
at UnityEngine.Rendering.Universal.UniversalRenderPipeline.Render(...)
at UnityEngine.Rendering.RenderPipelineManager.DoRenderLoop_Internal(...)

原因:Unity 2022 的 URP 在初始化 Blue Noise Texture 时存在空引用问题。

参考讨论:Unity Forum - Null reference in URP’s SetupPerFrameShaderConstants

解决方案

  1. 在 Project 窗口中找到 UniversalRenderPipelineAsset.asset
  2. 在 Inspector 中取消勾选 LOD Cross Fade
  3. 确认下方的 LOD Cross Fade Dithering Type 变为灰色(不可选)即可

现象:升级后 Android 包内的 HTTP 请求全部失败,网络功能异常。

原因:Unity 2022 默认禁用了明文 HTTP 协议,仅允许 HTTPS。

解决方案

打开 Edit → Project Settings → Player,切换到 Android 平台,找到:

Other Settings → Configuration → Allow downloads over HTTP

将选项改为允许即可。

建议:长期来看应将接口迁移到 HTTPS,HTTP 存在安全风险,此配置仅作临时过渡使用。

版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 崎径 其镜

赞助

  • 微信

    微信

  • 支付宝

    支付宝