How to define TYPES to meshes

Hi Guys, I’m new to babylon and really webgl in general. I’m looking for a way to define a “type” of a mesh. For example, floors, walls, doors, products, hardware, etc…

I was looking at the metadata aspect of a mesh. Is that a place to define such a thing, or is there a better place to do so?

Thanks

Hi,

You can define metadatas for a mesh with a JSON string and save the metadata to a .BABYLON file.

Mymesh.metadata = {JsonString}

You will find many examples in the documentation.

Boris

2 Likes