0

I have a problem, I learning Babylonjs and i try get lenght scene.meshes, but scene.meshes.length and Object.keys(scene.meshes).length

enter image description here

5
  • 1
    Please may you replace the image with text? We can't copy/paste code or objects from images. Commented Apr 26, 2021 at 11:14
  • Can you share ur code snippet? Commented Apr 26, 2021 at 11:15
  • 2
    The length changes because Chrome shows the current state of the object. This means that it changed in the time you logged it and the time you opened it. See array length incorrect Commented Apr 26, 2021 at 11:17
  • I tried console.log(scene.meshes.length); and console.log(Object.keys(scene.meshes).length); Commented Apr 26, 2021 at 11:17
  • Reyno, sure you are right, thank you! Commented Apr 26, 2021 at 11:19

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.