Hello Everyone.
I am running IronPython on Unity.
Although it was working on version 2017.1.2f1 or earlier, an error occurs on version 2017.2.0f3.
This is Python script.
import clr
clr.AddReference("UnityEngine")
import UnityEngine
UnityEngine.Debug.Log("Test message from Python.")
This is the error message.
ImportException: No module named UnityEngine
Microsoft.Scripting.Runtime.LightExceptions.ThrowException (Microsoft.Scripting.Runtime.LightException lightEx)
Microsoft.Scripting.Runtime.LightExceptions.CheckAndThrow (System.Object value)
Microsoft.Scripting.Interpreter.FuncCallInstruction`2[System.Object,System.Object].Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame)
Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame)
Your help would be greatly appreciated.