How would you approach having 2D interaction in 3D space? Kind of like a 2D minigame in a 3D game. Or say a interactive 2D map imprinted on a table in 3D. User can use their keyboard or the mouse to interact.

Examples from Wolfenstein The New Colossus - Enigma code minigame, map and wolfenstein 3D minigame inside an arcade machine

Currently I'm trying to have a TextEdit component in 3D space but not able to edit it. I tried this but not able to edit the text.

text_edit.grab_focus()

My hierarchy is

  • Sprite3D
    -- SubViewport
    --- TextEdit

Well, specifically looking at those video examples you linked, there is a clear point where they "cut" from the 3D scene to a special scene setup just for the minigame. At least that's what it seems. So they're kinda cheating.

It should still be possible though. I think the issue may be with the SubViewport not propagating Input. You could try using push_input and related functions.

    6 days later