How can I embed a text Editor into my game so that it pops up when the user interacts with an object

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Juan

I have recently built a text editor, and would like for my player to interact with its world inside the level. I was wondering how I can embed the text editor, so that the screen pops up when it interacts with an object, for example spaceship. I am trying to achieve a gameplay where my game teaches people how to code. It would be good if I could embed my text editor into my game seamlessly with the player being able to answer questions, and find solutions.

Any suggestions?

Did I misunderstand?
Isn’t it “scene instance”?

ramazan | 2022-01-18 09:40

:bust_in_silhouette: Reply From: Rodeo

If your text editor extends Control, then you can use it in the engine the same as any other GUI node.

Just in case you didn’t know, there is a TextEdit GUI control. The code editor in the engine uses it, so it’s pretty advanced as far as those types of GUI widgets go.