Thanks for this amazing plugin. #1
-
How I can Import required libs in unity? require "rest-client" |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There is no simple way to "import" your python code to Unity. I'm not really sure how to do it myself, but I can suggest reading the IronPython documentation on Accessing Python code from other .NET code for starters. Alternatively, you can wrap every function you want to access and then invoke them from C#. From this stackoverflow example:
|
Beta Was this translation helpful? Give feedback.
There is no simple way to "import" your python code to Unity. I'm not really sure how to do it myself, but I can suggest reading the IronPython documentation on Accessing Python code from other .NET code for starters.
Alternatively, you can wrap every function you want to access and then invoke them from C#. From this stackoverflow example: