when i enter decalMesh.sourceMesh, it returns undefined
How to retreive the properties of the decal mesh (sourcemesh, position, normal, size and angle,) in Babylonjs
After creation, a decal mesh is no different than a regular mesh. If you want to retrieve the parameters you used to create it, you should store them somewhere. For eg, on the decal mesh itself:
const decalMesh = ...; // create the decal mesh decalMesh.decalSize = size; decalMesh.decalAngle = angle; ...
Thank you so much for the reply