This repository was archived by the owner on Mar 9, 2026. It is now read-only.
Thanks for this amazing plugin. #1
|
How I can Import required libs in unity? require "rest-client" |
Answered by
exodrifter
Oct 11, 2017
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: |
0 replies
Answer selected by
exodrifter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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: