不懂就问,为什么我在vs中命名就报错


why?

可能需要这样写

textureWidth: {value: 600, target: param.x, editor: {slide: true}}

uniform ConstantV{
vec4 param;
}

参考手册
Cocos Creator 3.8 手册 - UBO 内存布局策略

不可以,我试过了