What is use of getMeshByName

hello everyone i am new in babylonjs…still i confused use of getMeshByName …What is the use of getMeshByName…and where we use…

Thankyou…

Hi and welcome to the community @Jenifer.

With complex scenes you’ll often have lots of nodes in your scene, so getMeshByName and getNodeByName are convenient methods to quickly find (get a reference to) a particular mesh or node e.g. myPlayerCharacterMesh etc, assuming you’ve named everything well.

3 Likes

Thankyou so much @inteja:smiling_face_with_three_hearts:

2 Likes