I have a problem, I learning Babylonjs and i try get lenght scene.meshes, but scene.meshes.length and Object.keys(scene.meshes).length
- 1Please may you replace the image with text? We can't copy/paste code or objects from images.evolutionxbox– evolutionxbox2021-04-26 11:14:37 +00:00Commented Apr 26, 2021 at 11:14
- Can you share ur code snippet?Danielprabhakaran N– Danielprabhakaran N2021-04-26 11:15:24 +00:00Commented Apr 26, 2021 at 11:15
- 2The 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 incorrectStackByMe– StackByMe2021-04-26 11:17:02 +00:00Commented Apr 26, 2021 at 11:17
- I tried console.log(scene.meshes.length); and console.log(Object.keys(scene.meshes).length);Eugene– Eugene2021-04-26 11:17:14 +00:00Commented Apr 26, 2021 at 11:17
- Reyno, sure you are right, thank you!Eugene– Eugene2021-04-26 11:19:36 +00:00Commented Apr 26, 2021 at 11:19
Add a comment |
