1. A concise explanation of the problem you're experiencing.
I can't use 3D-Tiles Style on a 3D-Tileset with a b3dm in it to change its color. If I apply this code, the style is added to the Tileset-Object but the color doesn't change. No specified style is converted to the Tileset.
2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
let tileset = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
url: 'URL_TO_TILESET.json',
}));
let tstyle = new Cesium.Cesium3DTileStyle();
tstyle.color = 'color("blue")';
tileset.readyPromise.then(function () {
tstyle.readyPromise.then(function() {
tileset.style = tstyle;
});
}).otherwise(function (error) {
console.log(error);
});
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
Change the color by a user of a vertical layer implemented as b2dm/3D-Tileset into Cesium
4. The Cesium version you're using, your operating system and browser.
1.51; Firefox; Linux Mint