Traffy.UnityPython
Traffy.UnityPython copied to clipboard
limited IO operations
UnityPython is designed with security concerns kept in mind, which is to say, Python scripts do not have the permission to access IO operations, protected .NET APIs and so on.
However, for game use, accessing to specific file system is required to save game states.
You can only use IO operations within Application.persistentDataPath. For instance, we can provide a module uio:
import uio
uio.open("a/b/c") # open ${Application.persistentDataPath}/a/b/c