« first day (3584 days earlier)      last day (1421 days later) » 

3:17 PM
I could use some help clarifying this question, if anyone's able to parse out what's being asked.
0
Q: How i can execute c# to unity?

Destroyeri 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...

 
user92578
woow
 
user92578
Either they want to execute arbitrary C#, like you could in Python
Or they want to execute arbitrary Python that could interface with Unity
 
nwp
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
 
nwp
It's only strings from the server. He knows what he is doing.
 
I'm hoping I'm just misunderstanding what they have in mind. Maybe they want to invoke a remote procedure call?
 
user92578
Yeah I guess this could be a really stretched out XY-problem
 
nwp
Language barriers really suck.
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
 

« first day (3584 days earlier)      last day (1421 days later) »