I am trying to get a context menu to appear in front of a 3D object [SOLVED]

Hi. I am trying to make a situation wherein a context menu appears when you click on the mesh of a 3D object. Herein what I have currently:
image
But what is happening is that the context menu is appearing behind the 3D object and so it is not properly visible. I was wondering what could I do to make the context menu appear in front of the 3D object?

Hi!

It doesn’t look like that on the picture provided.
Nobody, except you, knows the setup of your page and scene. So, it would be easier to help, if you provide a minimal working live code example, that demonstrates the issue (jsfiddle, codepen, codesandbox etc.)

contextMesh.renderOrder=100;

/cc

1 Like