The version numbers I use are:
"dependencies": {
"@babylonjs/core": "^5.12.1",
"@babylonjs/gui": "^5.12.1",
"@babylonjs/loaders": "^5.12.1",
An attribute error occurred when I added a material to the ground, the code is as follows:
// Ground
var ground = BABYLON.MeshBuilder.CreateGround("ground", { height: 50, width: 50, subdivisions: 4 }, scene);
var groundMaterial = new BABYLON.StandardMaterial("groundMaterial", scene);
groundMaterial.diffuseTexture = new BABYLON.Texture("textures/wood.jpg", scene);
groundMaterial.diffuseTexture.uScale = 30;
groundMaterial.diffuseTexture.vScale = 30;
groundMaterial.specularColor = new BABYLON.Color3(.1, .1, .1);
ground.material = groundMaterial;
Code taken from: https://playground.babylonjs.com/#AHQEIB#17
What is the reason for this please?