I am using “react-babylonjs” to be able to code things declaratively, there is an issue though, that only properties of existing instances are updated declaratively, if you will change props passed to constructor like size then it won’t be updated. I get it, it makes sense, but.
I want to scale box dynamically so I am updating “scaling” property on a box, together with box size also texture is scaled, but I want texture to stay the same size and if box is now larger then just repeat that texture, so I understand I have to update UV map to do that. So I am doing that, but it doesn’t work for some reason. If I will recreate Mesh with new faceUV, then it works, but if I will just try to update existing UV then it doesn’t change anything.
Here is an example: https://playground.babylonjs.com/#ED6HW8#6
First we create box with size 1, then I resize it to size 2 and recompute faceUV, but it doesn’t work.
What should I do?
I can reproduce it in example, just change Y size to 20, then sides are black and top wall is getting white, why is it happening? https://playground.babylonjs.com/#ED6HW8#8
The Playground will be updated the day after the PR is merged (which should happen today I think), and the npm packages are available on the next friday after the PR is merged.