Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GameObject.StaticFlags打包后丢失 #457

Open
CortexCore opened this issue Jan 29, 2025 · 5 comments
Open

GameObject.StaticFlags打包后丢失 #457

CortexCore opened this issue Jan 29, 2025 · 5 comments
Labels
help wanted Extra attention is needed unity bug Unity engine bug

Comments

@CortexCore
Copy link

打包后的场景中,场景中(包括预制体)所有StaticFlags均丢失

环境:
[email protected]
[email protected]
Platform@Windows Editor,WIndows Standlone,Android

这使动态批处理应用无法为真机进行场景优化


另外在SVC文件已收集并参与打包后

项目A打包,项目A使用:
大概率正常显示
小概率需要ShaderVarableCollection.WarmUp()

项目B打包,项目A使用:
不显示,需要重新指定Material.Shader后才能显示

@CortexCore
Copy link
Author

这看起来更像是AB包和Unity本身的问题,已经搜索到了相关的报告,均未找到解决方式
这有更好的主意吗?

@gmhevinci
Copy link
Collaborator

构建管线用的哪个?SBP吗?

@gmhevinci gmhevinci added the help wanted Extra attention is needed label Feb 6, 2025
@CortexCore
Copy link
Author

构建管线用的哪个?SBP吗?

是的,使用SBP管线进行构建

@CortexCore
Copy link
Author

有关项目A打包资源,给项目B使用的场景中,材质显示不正确的情况,已找到原因:
两个项目的URP都需要同一版本同一Rendering Path
但目前GameObject.StaticFlags依然未找到解决方案

@gmhevinci
Copy link
Collaborator

有关项目A打包资源,给项目B使用的场景中,材质显示不正确的情况,已找到原因: 两个项目的URP都需要同一版本同一Rendering Path 但目前GameObject.StaticFlags依然未找到解决方案

尝试动态加载预制体呢?

@gmhevinci gmhevinci added the unity bug Unity engine bug label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed unity bug Unity engine bug
Projects
None yet
Development

No branches or pull requests

2 participants