mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 12:30:19 +00:00
...
This commit is contained in:
parent
4afe293aca
commit
9ed48bd6a9
@ -133,10 +133,11 @@ The `VM` class provides a sandboxed Python environment and a set of APIs for int
|
|||||||
A callback that will be called when the Python code invokes `print` function.
|
A callback that will be called when the Python code invokes `print` function.
|
||||||
By default, it will print the message to Unity console.
|
By default, it will print the message to Unity console.
|
||||||
|
|
||||||
+ `System.Action<string> stderr = Debug.LogError`
|
+ `System.Action<string> stderr = null`
|
||||||
|
|
||||||
A callback that will be called when the Python code emits an error message.
|
A callback that will be called when the Python code emits an error message.
|
||||||
By default, it will print the exception message to Unity console.
|
By default, an Exception will be raised.
|
||||||
|
You can set it to `Debug.LogError` for printing to the Unity Console.
|
||||||
|
|
||||||
### Debug Flag
|
### Debug Flag
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user