3D rotating cube on widget

Hi everyone,

I’m trying to make a 3D editor in game feature and I’m struggling to find the way to make a 3D cube that can be rotated in order to manipulate de camera ( like the ones on blender, 3DMax, etc ).

I’m thinking about using a 3D cube mesh and use a render target to use the texture on a widget, but after that I don’t know how to interact with the cube, just because it’s a texture I’m not able to clikc or drag it to rotate it. Does anyone know a better approach to achieve this?

Any help is appreciated!

kind regards,

Alex.