AI提供的下面这个方法提示:[代码]mesh.material.setUniforms is not a function[代码]
怎么设置GLTF模型渲染完毕后,修改其中某个mesh 材质的颜色?AI提供的下面这个方法提示:[代码]mesh.material.setUniforms is not a function[代码] handleGLTFLoaded({ detail }) { const el = detail.value.target; const gltf = el.getComponent("gltf"); const targetMeshes = gltf.getPrimitivesByNodeName("1"); targetMeshes.forEach(mesh => { console.log(`Mesh :`, mesh); // 输出Mesh信息 // 正确设置颜色值范围(0-1) mesh.material.baseColorFactor = [1, 0, 0, 1]; // 必须调用setUniforms更新着色器参数 mesh.material.setUniforms(); }); }
06-09文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html
如何解决订阅消息推送openId不对的问题?已经确保了小程序appid是统一情况下注册了openid,但是在后台使用这个openid推送的时候,返回的结果确实{"errcode":40003,"errmsg":"invalid openid rid: 60496d8e-57c5de12-3ed11601"}, 小程序appid:wx119c09928dd12f40 用的测试环境测试的
2021-03-11