This may seem odd, but is there any way to run code within code in UE?
I am making a game with a coding component (i.e. the player writes code for a coding problem, and the game has to test whether this code is the correct solution like LeetCode, HackerRank etc). One of the things the user does is write code inside a text box, and I should be able to take this code and test it to see if it works well.
I’m asking if there is any way to create an object or script inside the game that allows such functionality (i.e. compiles and runs the code that the player has entered)?
I’ve done this in Unity C# but I couldn’t find a way to do it here (the game has to be in UE btw).
It can be any semi-famous programming language like Python, C# or C++, and I know I will have to cleanse code. Is there any way to do this without having to write a whole compiler or install too many other things? (it’s fine if I have to install a few modules)