See More

using System.Collections.Generic; namespace Exodrifter.UnityPython { public struct UnityPythonCreationSetting { ///

/// Should using UnityEngine.dll in python runtime? /// public readonly bool IncludeUnityEngine; /// /// Should using UnityEditor.dll in python runtime?
/// Only valid in editor. ///
public readonly bool IncludeUnityEditorIfPossible; /// /// Specific namespace which will be using in python runtime. /// public readonly string[] CustomIncluding; /// /// Options in create python service. /// public readonly IDictionary Options; /// /// Redirect python standard output stream to unity logger. /// public readonly bool RedirectStandardOutputStream; /// /// Redirect python standard error stream to unity logger. /// public readonly bool RedirectStandardErrorStream; public static UnityPythonCreationSetting CreateNew( bool includeUnityEngine = true, bool includeUnityEditorIfPossible = false, string[] customIncluding = null, IDictionary options = null, bool redirectStandardErrorStream = true, bool redirectStandardOutputStream = true) { return new UnityPythonCreationSetting( includeUnityEngine, includeUnityEditorIfPossible, customIncluding, options, redirectStandardErrorStream, redirectStandardOutputStream); } private UnityPythonCreationSetting( bool includeUnityEngine, bool includeUnityEditorIfPossible, string[] customIncluding, IDictionary options, bool redirectStandardErrorStream, bool redirectStandardOutputStream) { IncludeUnityEngine = includeUnityEngine; IncludeUnityEditorIfPossible = includeUnityEditorIfPossible; CustomIncluding = customIncluding; Options = options; RedirectStandardErrorStream = redirectStandardErrorStream; RedirectStandardOutputStream = redirectStandardOutputStream; } } }