Hi All,
I am trying out babylonjs and my requirement is to change the color of a mesh dynamically based on what value I pass. I created a group of radio buttons and a handler function. This handler function receives the value of the color and assign a new color to the mesh.
My problem is that whenever I use the FromHexString() method to create a color, I get the following error:
Uncaught TypeError: babylonjs_core__WEBPACK_IMPORTED_MODULE_0_.Color3.FromHexString is not a constructor
I am using react and @babylonjs/core npm package
Here is a playground of the basic code structure. It wont execute as it is in react but still it shows how I am using the function
Color3 Error | Babylon.js Playground (babylonjs-playground.com)
I am a complete beginner and I dont know if I am missing something here
Thank you