Hello there,
The getMeshesByXXX functions have inconsistant return types :
BABYLON.Scene.getMeshesByTags(tagsQuery: string, filter?: (mesh: BABYLON.AbstractMesh) => boolean): BABYLON.Mesh[]
BABYLON.Scene.getMeshesById(id: string): BABYLON.AbstractMesh[];
I don’t see any reason why getMeshesByTags should not return an AbstractMesh array. It can also cause issues with typescript’s type verification.
I think my question could also extend to getActiveMeshes which returns a SmartArray instead of a regular one.
BABYLON.Scene.getActiveMeshes(): BABYLON.SmartArray<BABYLON.AbstractMesh>
Should I open an issue about this ? If not, I’d like to know why things were made this way.