一。
https://blog.csdn.net/m0_46378049/article/details/115000628 shader
unity3d版本支持说明:https://docs.unity.cn/cn/2019.1/Manual/com.unity.render-pipelines.lightweight.html
shader内置变量:https://docs.unity3d.com/Manual/SL-UnityShaderVariables.html
shader中的变量:_MainTex_ST 表示纹理_mainTex的偏移值,对应UNity material界面中设置的值 _lightcolor0最强光颜色
自定义老的shader通过菜单升级到URP时报错:
There's no upgrader to convert Custom/Water shader to selected pipeline
只能手写shader
shader中语句:"RenderType" = "Opaque" "Queue" = "Overlay" 表示如果有重叠,则不管其他物体是否在本物体前,其他物体的重叠部分不渲染。
二:
unityAssetCleaner清理不需要资源,减少包体。
GitHub - tsubaki/UnityAssetCleaner
你可以在刚刚完成一次build之后在“Editor Log”中找到这些信息。