Skip to main content

All Questions

0 votes
2 answers
489 views

Can't execute python using IronPython in Unity

I try to execute a function on python from a unity C# script and I'm using the package "IronPython", but on my python file I'm using - matplotlib.pyplot and I get from my unity editor the ...
Noam Riahi's user avatar
1 vote
1 answer
611 views

Unity IronPython ImportException: No module named __future__

I've been using IronPython as part of my Unity project. This is the IronPython part of my code: var engine = Python.CreateEngine(); ICollection<string> searchPaths = engine.GetSearchPaths(); ...
Tamir Halperin's user avatar
2 votes
0 answers
3k views

How to correctly import IronPython into Unity

What is the correct way to import IronPython into unity? When i just put the Lib and netstandard2.0 folders into Assets/Plugins/IronPython it gives me these errors: Assembly 'Assets/Plugins/IronPython/...
JustClaire's user avatar
0 votes
0 answers
94 views

UDP server vs .NET for python for Unity

Does anyone have an idea of the performance difference between .NET for python and just setting up a UDP server for communication between python and Unity? I've tried ironPython but it only supports ...
Issac Spiegel's user avatar
1 vote
1 answer
954 views

UnityPython working on Editor but not on Build

I am making a game wherein the player executes Python code in order to move the character. The way I've done this is with UnityPython, which is basically just IronPython integrated within Unity. The ...
Quazyy's user avatar
  • 13
0 votes
0 answers
100 views

How to fix "The type 'ScriptRuntime' is defined in an assembly that is not referenced", when I use IronPython in Unity3D

I used IronPython in Unity3D to import a .py file by C#. However, there is an error. I don't know why. "The type 'ScriptRuntime' is defined in an assembly that is not referenced." I don't know ...
Peng Chen's user avatar
1 vote
1 answer
366 views

How can I see what exceptions my IronPython script is generating?

I am experimenting with embedding IronPython in a Unity 3D project and I've run into some errors I can't seem to figure out. I have the following script attached to a GameObject in Unity. using ...
Keith's user avatar
  • 1,925
0 votes
2 answers
1k views

IronPython (for .NET 4.x) integration with Unity

I am trying to integrate a python script with my Unity application using Visual Studio 2017. I have followed all the steps given in the various online tutorials, and this is my code: image Also, when ...
Harsh Gupta's user avatar
0 votes
1 answer
984 views

Ironpython ScriptEngine in AppDomain syntax

I cannot find up to date syntax for putting an Ironpython ScriptEngine into it's own AppDomain in C#. The only syntax I have seen so far is by creating the ScriptEngine like so: AppDomain sandbox = ...
FuzzkingCool's user avatar
3 votes
0 answers
174 views

Sanitize dynamically loaded IronPython script against malicious code

I'm making a game in Unity and I want to max out configurability - user can load his own packages with own levels, textures, sound effects, AI behaviour etc. For the AI part I'm aware it's probably ...
Sushi271's user avatar
  • 554
4 votes
1 answer
5k views

Using C# dynamic typing in Unity 5.3.1f [duplicate]

I have written code for my game that need to run a function of my python code. I am using Ironpython for my project. However, when I am trying to use C# dynamic typing to call a function in the code ...
Amirhossein's user avatar
2 votes
1 answer
268 views

c# wants extra Argument when called from python (.net with ironpython)

I have this in c# (Gameobject is from unity3d) namespace DLLTest { public class buttong : MonoBehaviour { public GameObject BButtn([ParamDictionary] IDictionary kwargs) This in the ...
Rainbowdesign's user avatar
1 vote
0 answers
156 views

How do I remove an IronPython event from a C# event handler from WITHIN the event?

As an extension of this question: How do I create a C# event handler that can be handled in IronPython? My IronPython script looks like this: def BarHandler(*args): Foo.Bar -= BarHandler Foo....
Omboam's user avatar
  • 11