i need help
how i can execute c# code to unity from python exec() or without python?
i found only that
PythonEngine e = new PythonEngine();
e.LoadAssembly(Assembly.GetAssembly(typeof(GameObject)));
e.ExecuteFile("file.py");
i want it for (m...
Quite a trainwreck of a question. My guess is he wants to send code from the server to the client that moves an object and is looking for C#'s equivalent of Python's exec (which I believe doesn't exist short of running a compiler to build a dll and load that dynamically).
However you do scripting in Unity is probably the answer he is looking for,
user92578
You can trust them though, they know what they're doing
user92578
Which is why they asked this question
user92578
3:27 PM
Who needs Spectre when there's someone executing arbitrary strings from the internet
Maybe the question really is "How do I design a system where the server sends updates to the client which then displays them". The attempted solution is to just send the code that does the update and have the client execute it which isn't inherently wrong. The format of the update just needs to be environment-independent because it cannot use pointers, so it has to send IDs instead. And the operations on the entities need to be known at compile time which is unfortunate.
Or maybe we're guessing in the completely wrong direction :D