I like to create a 3d scene where players can walk around and touch 3d objects. When a 3d object is touched then the player is shown a 2d scene which he can interact with.
Has anybody done this and can advise on any problems with it?
Is there an example anywhere that I can look at?
You will need to be very careful when it comes to 2D & 3D as you cannot mix and match them together. 3D collisions, rigidbodies, physics, etc. will only affect other 3D objects and the same can be said about 2D objects. I have never done what you mention before. But I would imagine it would be fine if you confine the 2D and 3D objects to their own spaces or even separate game scenes.
There’s no problem mixing 2D and 3D since they are really the same thing (sprites are just textures on quads basically). It’s only the physics engines that are different. You can use 3D physics on sprites if you want.
A verbal example to compare is when a character approaches a 3D save point in a 3D game. When the character clicks on the 3D object - in a lot of games a 2D scene will pop up to allow the save function. This is essentially similar - but different. Usually the save interface is 2D which can be interacted with. I’m sure your idea is more complicated but may want to start at the basics of a concept and work towards more complex iterations of the concept.