Comments (9)
from socotools.
报错是在ShaderVariantsStripperCode.LoadConfigs方法内部吗
我用2021.3.5测试没有报错,能否更详细的信息,例如:
这个工具的代码是否变更过程序集、名空间、类名、或其他可疑修改
使用工具做条件编辑是否会报错
条件量级大概有多少
项目的资源类型是文本还是二进制
其他版本是否测试过
from socotools.
这个报错没有显示报出来,我在debug状态下,展开data对象才看到的,工具代码直接拷贝到项目没有任何修改, asset serialization模式为Force Binary, 条件编辑没有报错,条件只有3个,开了global, global有5个
其它版本没试过,测试代码:
from socotools.
我将项目中资源修改为text模式也是同样报错
from socotools.
我尝试了下,确实能复现,不过感觉是Rider的Bug
简单创建了一个自定义序列化的Dictionary,既继承ISerializationCallbackReceiver和Dictionary的可序列化类,在Rider的变量监控视窗中都会显示上述Exception,但实际上没有对使用造成影响
如果着的需要debug看变量值,可以展开用下面的RawView,也可以用Visual Studio,没有发生类似的问题
感谢你的反馈
from socotools.
我发现这个问题主要是发现我配置剔除后,打包shader后没有剔除,我再测试下
from socotools.
目前我所知的有Standard这个Shader会因为未知原因无法被剔除。
可以尝试用一个材质或变体收集文件引用shader变体,然后单独将材质或变体收集文件打bundle进行断点测试
本来这个工具还支持剔除测试,但2021版本不让在 IPreprocessShaders 外使用 ShaderKeywordSet,所以只能靠老办法测试了,2021的剔除测试后续再考虑适配
from socotools.
找到原因了,我在 “包含Keyword或集合” 这个条件选择了多个Keyword导致不能剔除
from socotools.
好的,这个issues先关闭了
from socotools.
Related Issues (4)
- Unity 2018.4能用吗 HOT 2
- 推荐Unity版本 HOT 1
- 剔除urp里的pass有问题 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from socotools.