├── .gitignore ├── Assets ├── Scenes │ └── Test.unity ├── Script │ ├── PyRun.cs │ ├── interpreter │ │ ├── ErrorHandle.cs │ │ └── Interpreter.cs │ └── python │ │ ├── Test.py │ │ └── Test1.py └── dll │ ├── IronPython.Modules.dll │ ├── IronPython.SQLite.dll │ ├── IronPython.dll │ ├── Microsoft.Dynamic.dll │ ├── Microsoft.Scripting.AspNet.dll │ ├── Microsoft.Scripting.Core.dll │ └── Microsoft.Scripting.dll ├── LICENSE ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NavMeshLayers.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | build/ 5 | .DS_Store 6 | *.meta 7 | *.swp 8 | 9 | # Autogenerated VS/MD solution and project files 10 | /*.csproj 11 | /*.unityproj 12 | /*.sln 13 | /*.suo 14 | /*.user 15 | /*.userprefs 16 | /*.pidb 17 | /*.booproj 18 | -------------------------------------------------------------------------------- /Assets/Scenes/Test.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 8 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1} 42 | --- !u!157 &3 43 | LightmapSettings: 44 | m_ObjectHideFlags: 0 45 | serializedVersion: 9 46 | m_GIWorkflowMode: 0 47 | m_GISettings: 48 | serializedVersion: 2 49 | m_BounceScale: 1 50 | m_IndirectOutputScale: 1 51 | m_AlbedoBoost: 1 52 | m_TemporalCoherenceThreshold: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 8 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_TextureWidth: 1024 61 | m_TextureHeight: 1024 62 | m_AO: 0 63 | m_AOMaxDistance: 1 64 | m_CompAOExponent: 1 65 | m_CompAOExponentDirect: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 3 75 | m_BakeBackend: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVRFiltering: 0 81 | m_PVRFilteringMode: 1 82 | m_PVRCulling: 1 83 | m_PVRFilteringGaussRadiusDirect: 1 84 | m_PVRFilteringGaussRadiusIndirect: 5 85 | m_PVRFilteringGaussRadiusAO: 2 86 | m_PVRFilteringAtrousColorSigma: 1 87 | m_PVRFilteringAtrousNormalSigma: 1 88 | m_PVRFilteringAtrousPositionSigma: 1 89 | m_LightingDataAsset: {fileID: 0} 90 | m_ShadowMaskMode: 2 91 | --- !u!196 &4 92 | NavMeshSettings: 93 | serializedVersion: 2 94 | m_ObjectHideFlags: 0 95 | m_BuildSettings: 96 | serializedVersion: 2 97 | agentTypeID: 0 98 | agentRadius: 0.5 99 | agentHeight: 2 100 | agentSlope: 45 101 | agentClimb: 0.4 102 | ledgeDropHeight: 0 103 | maxJumpAcrossDistance: 0 104 | minRegionArea: 2 105 | manualCellSize: 0 106 | cellSize: 0.16666667 107 | manualTileSize: 0 108 | tileSize: 256 109 | accuratePlacement: 0 110 | m_NavMeshData: {fileID: 0} 111 | --- !u!1 &958543868 112 | GameObject: 113 | m_ObjectHideFlags: 0 114 | m_PrefabParentObject: {fileID: 0} 115 | m_PrefabInternal: {fileID: 0} 116 | serializedVersion: 5 117 | m_Component: 118 | - component: {fileID: 958543874} 119 | - component: {fileID: 958543873} 120 | - component: {fileID: 958543872} 121 | - component: {fileID: 958543871} 122 | - component: {fileID: 958543869} 123 | - component: {fileID: 958543870} 124 | m_Layer: 0 125 | m_Name: Cube 126 | m_TagString: Untagged 127 | m_Icon: {fileID: 0} 128 | m_NavMeshLayer: 0 129 | m_StaticEditorFlags: 0 130 | m_IsActive: 1 131 | --- !u!114 &958543869 132 | MonoBehaviour: 133 | m_ObjectHideFlags: 0 134 | m_PrefabParentObject: {fileID: 0} 135 | m_PrefabInternal: {fileID: 0} 136 | m_GameObject: {fileID: 958543868} 137 | m_Enabled: 1 138 | m_EditorHideFlags: 0 139 | m_Script: {fileID: 11500000, guid: 0582b7661a9e7884f9a2e4aa11d65346, type: 3} 140 | m_Name: 141 | m_EditorClassIdentifier: 142 | pyFile: {fileID: 102900000, guid: 56e4c2d99a13f3143ac7480eb813494c, type: 3} 143 | pyFilePath: Assets/src/python/ 144 | --- !u!114 &958543870 145 | MonoBehaviour: 146 | m_ObjectHideFlags: 0 147 | m_PrefabParentObject: {fileID: 0} 148 | m_PrefabInternal: {fileID: 0} 149 | m_GameObject: {fileID: 958543868} 150 | m_Enabled: 1 151 | m_EditorHideFlags: 0 152 | m_Script: {fileID: 11500000, guid: 0582b7661a9e7884f9a2e4aa11d65346, type: 3} 153 | m_Name: 154 | m_EditorClassIdentifier: 155 | pyFile: {fileID: 102900000, guid: 1173ee957beb06049917037be87dfdbd, type: 3} 156 | pyFilePath: Assets/src/python/ 157 | --- !u!23 &958543871 158 | MeshRenderer: 159 | m_ObjectHideFlags: 0 160 | m_PrefabParentObject: {fileID: 0} 161 | m_PrefabInternal: {fileID: 0} 162 | m_GameObject: {fileID: 958543868} 163 | m_Enabled: 1 164 | m_CastShadows: 1 165 | m_ReceiveShadows: 1 166 | m_MotionVectors: 1 167 | m_LightProbeUsage: 1 168 | m_ReflectionProbeUsage: 1 169 | m_Materials: 170 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 171 | m_StaticBatchInfo: 172 | firstSubMesh: 0 173 | subMeshCount: 0 174 | m_StaticBatchRoot: {fileID: 0} 175 | m_ProbeAnchor: {fileID: 0} 176 | m_LightProbeVolumeOverride: {fileID: 0} 177 | m_ScaleInLightmap: 1 178 | m_PreserveUVs: 1 179 | m_IgnoreNormalsForChartDetection: 0 180 | m_ImportantGI: 0 181 | m_SelectedEditorRenderState: 3 182 | m_MinimumChartSize: 4 183 | m_AutoUVMaxDistance: 0.5 184 | m_AutoUVMaxAngle: 89 185 | m_LightmapParameters: {fileID: 0} 186 | m_SortingLayerID: 0 187 | m_SortingLayer: 0 188 | m_SortingOrder: 0 189 | --- !u!65 &958543872 190 | BoxCollider: 191 | m_ObjectHideFlags: 0 192 | m_PrefabParentObject: {fileID: 0} 193 | m_PrefabInternal: {fileID: 0} 194 | m_GameObject: {fileID: 958543868} 195 | m_Material: {fileID: 0} 196 | m_IsTrigger: 0 197 | m_Enabled: 1 198 | serializedVersion: 2 199 | m_Size: {x: 1, y: 1, z: 1} 200 | m_Center: {x: 0, y: 0, z: 0} 201 | --- !u!33 &958543873 202 | MeshFilter: 203 | m_ObjectHideFlags: 0 204 | m_PrefabParentObject: {fileID: 0} 205 | m_PrefabInternal: {fileID: 0} 206 | m_GameObject: {fileID: 958543868} 207 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 208 | --- !u!4 &958543874 209 | Transform: 210 | m_ObjectHideFlags: 0 211 | m_PrefabParentObject: {fileID: 0} 212 | m_PrefabInternal: {fileID: 0} 213 | m_GameObject: {fileID: 958543868} 214 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 215 | m_LocalPosition: {x: 0, y: 0, z: 0} 216 | m_LocalScale: {x: 1, y: 1, z: 1} 217 | m_Children: [] 218 | m_Father: {fileID: 0} 219 | m_RootOrder: 2 220 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 221 | --- !u!1 &1850295720 222 | GameObject: 223 | m_ObjectHideFlags: 0 224 | m_PrefabParentObject: {fileID: 0} 225 | m_PrefabInternal: {fileID: 0} 226 | serializedVersion: 5 227 | m_Component: 228 | - component: {fileID: 1850295725} 229 | - component: {fileID: 1850295724} 230 | - component: {fileID: 1850295723} 231 | - component: {fileID: 1850295722} 232 | - component: {fileID: 1850295721} 233 | m_Layer: 0 234 | m_Name: Main Camera 235 | m_TagString: MainCamera 236 | m_Icon: {fileID: 0} 237 | m_NavMeshLayer: 0 238 | m_StaticEditorFlags: 0 239 | m_IsActive: 1 240 | --- !u!81 &1850295721 241 | AudioListener: 242 | m_ObjectHideFlags: 0 243 | m_PrefabParentObject: {fileID: 0} 244 | m_PrefabInternal: {fileID: 0} 245 | m_GameObject: {fileID: 1850295720} 246 | m_Enabled: 1 247 | --- !u!124 &1850295722 248 | Behaviour: 249 | m_ObjectHideFlags: 0 250 | m_PrefabParentObject: {fileID: 0} 251 | m_PrefabInternal: {fileID: 0} 252 | m_GameObject: {fileID: 1850295720} 253 | m_Enabled: 1 254 | --- !u!92 &1850295723 255 | Behaviour: 256 | m_ObjectHideFlags: 0 257 | m_PrefabParentObject: {fileID: 0} 258 | m_PrefabInternal: {fileID: 0} 259 | m_GameObject: {fileID: 1850295720} 260 | m_Enabled: 1 261 | --- !u!20 &1850295724 262 | Camera: 263 | m_ObjectHideFlags: 0 264 | m_PrefabParentObject: {fileID: 0} 265 | m_PrefabInternal: {fileID: 0} 266 | m_GameObject: {fileID: 1850295720} 267 | m_Enabled: 1 268 | serializedVersion: 2 269 | m_ClearFlags: 1 270 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 271 | m_NormalizedViewPortRect: 272 | serializedVersion: 2 273 | x: 0 274 | y: 0 275 | width: 1 276 | height: 1 277 | near clip plane: 0.3 278 | far clip plane: 1000 279 | field of view: 60 280 | orthographic: 0 281 | orthographic size: 5 282 | m_Depth: -1 283 | m_CullingMask: 284 | serializedVersion: 2 285 | m_Bits: 4294967295 286 | m_RenderingPath: -1 287 | m_TargetTexture: {fileID: 0} 288 | m_TargetDisplay: 0 289 | m_TargetEye: 3 290 | m_HDR: 1 291 | m_AllowMSAA: 1 292 | m_ForceIntoRT: 0 293 | m_OcclusionCulling: 1 294 | m_StereoConvergence: 10 295 | m_StereoSeparation: 0.022 296 | m_StereoMirrorMode: 0 297 | --- !u!4 &1850295725 298 | Transform: 299 | m_ObjectHideFlags: 0 300 | m_PrefabParentObject: {fileID: 0} 301 | m_PrefabInternal: {fileID: 0} 302 | m_GameObject: {fileID: 1850295720} 303 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 304 | m_LocalPosition: {x: 0, y: 1, z: -10} 305 | m_LocalScale: {x: 1, y: 1, z: 1} 306 | m_Children: [] 307 | m_Father: {fileID: 0} 308 | m_RootOrder: 0 309 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 310 | --- !u!1 &2113757106 311 | GameObject: 312 | m_ObjectHideFlags: 0 313 | m_PrefabParentObject: {fileID: 0} 314 | m_PrefabInternal: {fileID: 0} 315 | serializedVersion: 5 316 | m_Component: 317 | - component: {fileID: 2113757108} 318 | - component: {fileID: 2113757107} 319 | m_Layer: 0 320 | m_Name: Directional Light 321 | m_TagString: Untagged 322 | m_Icon: {fileID: 0} 323 | m_NavMeshLayer: 0 324 | m_StaticEditorFlags: 0 325 | m_IsActive: 1 326 | --- !u!108 &2113757107 327 | Light: 328 | m_ObjectHideFlags: 0 329 | m_PrefabParentObject: {fileID: 0} 330 | m_PrefabInternal: {fileID: 0} 331 | m_GameObject: {fileID: 2113757106} 332 | m_Enabled: 1 333 | serializedVersion: 8 334 | m_Type: 1 335 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 336 | m_Intensity: 1 337 | m_Range: 10 338 | m_SpotAngle: 30 339 | m_CookieSize: 10 340 | m_Shadows: 341 | m_Type: 2 342 | m_Resolution: -1 343 | m_CustomResolution: -1 344 | m_Strength: 1 345 | m_Bias: 0.05 346 | m_NormalBias: 0.4 347 | m_NearPlane: 0.2 348 | m_Cookie: {fileID: 0} 349 | m_DrawHalo: 0 350 | m_Flare: {fileID: 0} 351 | m_RenderMode: 0 352 | m_CullingMask: 353 | serializedVersion: 2 354 | m_Bits: 4294967295 355 | m_Lightmapping: 4 356 | m_AreaSize: {x: 1, y: 1} 357 | m_BounceIntensity: 1 358 | m_ColorTemperature: 6570 359 | m_UseColorTemperature: 0 360 | m_ShadowRadius: 0 361 | m_ShadowAngle: 0 362 | --- !u!4 &2113757108 363 | Transform: 364 | m_ObjectHideFlags: 0 365 | m_PrefabParentObject: {fileID: 0} 366 | m_PrefabInternal: {fileID: 0} 367 | m_GameObject: {fileID: 2113757106} 368 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 369 | m_LocalPosition: {x: 0, y: 3, z: 0} 370 | m_LocalScale: {x: 1, y: 1, z: 1} 371 | m_Children: [] 372 | m_Father: {fileID: 0} 373 | m_RootOrder: 1 374 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 375 | -------------------------------------------------------------------------------- /Assets/Script/PyRun.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wenanlee/Unity3D-Python/d38b62bfbd97ca1857ee652ced8b56a3c253619b/Assets/Script/PyRun.cs -------------------------------------------------------------------------------- /Assets/Script/interpreter/ErrorHandle.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using IronPython.Hosting; 3 | using IronPython.Modules; 4 | using Microsoft.Scripting; 5 | using Microsoft.Scripting.Hosting; 6 | 7 | /// 8 | /// Exceptions of ironpython 9 | /// 10 | public class ErrorHandle : ErrorListener { 11 | 12 | public string Message { get; set; } 13 | public int ErrorCode { get; set; } 14 | public Severity Sev { get; set; } 15 | public SourceSpan Span { get; set; } 16 | 17 | public override void ErrorReported(ScriptSource source, string message, Microsoft.Scripting.SourceSpan span, int errorCode, Microsoft.Scripting.Severity severity) 18 | { 19 | Message = message; 20 | ErrorCode = errorCode; 21 | Sev = severity; 22 | Span = span; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets/Script/interpreter/Interpreter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Linq; 4 | using UnityEngine; 5 | using System.Text; 6 | using System.Collections; 7 | using IronPython.Hosting; 8 | using IronPython.Modules; 9 | using System.Collections.Generic; 10 | using Microsoft.Scripting.Hosting; 11 | 12 | 13 | /// 14 | /// Interpreter for IronPython. 15 | /// 16 | public class Interpreter 17 | { 18 | /// 19 | /// The scope. 20 | /// 范围 21 | /// 22 | private ScriptScope Scope; 23 | 24 | /// 25 | /// The engine. 26 | /// 引擎 27 | /// 28 | private ScriptEngine Engine; 29 | 30 | /// 31 | /// The source. 32 | /// 源 33 | /// 34 | private ScriptSource Source; 35 | 36 | /// 37 | /// The compiled. 38 | /// 编译 39 | /// 40 | private CompiledCode Compiled; 41 | 42 | /// 43 | /// The operation. 44 | /// 操作 45 | /// 46 | private ObjectOperations Operation; 47 | 48 | /// 49 | /// The python class. 50 | /// python 类 51 | /// 52 | private object PythonClass; 53 | 54 | /// 55 | /// Initializes a new instance of the class. 56 | /// 57 | /// 58 | public Interpreter() 59 | { 60 | Engine = Python.CreateEngine(); 61 | Scope = Engine.CreateScope(); 62 | } 63 | 64 | /// 65 | /// Initializes a new instance of the class. 66 | /// 初始化一个Interpreter类的新实例 67 | /// 68 | /// Source. 69 | public Interpreter(string src) : this() 70 | { 71 | Compile(src); 72 | } 73 | 74 | /// 75 | /// Compile the specified src. 76 | /// 编译指定的资源 77 | /// 78 | /// Source. 79 | public string Compile(string src, Microsoft.Scripting.SourceCodeKind CodeKind = 80 | Microsoft.Scripting.SourceCodeKind.SingleStatement) 81 | { 82 | if(src == string.Empty) 83 | return string.Empty; 84 | 85 | LoadRuntime(); 86 | 87 | 88 | Source = CodeKind == Microsoft.Scripting.SourceCodeKind.SingleStatement ? 89 | Engine.CreateScriptSourceFromString(src, CodeKind) : 90 | Engine.CreateScriptSourceFromFile(src); 91 | 92 | ErrorHandle errors = new ErrorHandle(); 93 | 94 | MemoryStream stream = new MemoryStream(); 95 | //Set IO Ouput of execution 96 | //设置执行任务 97 | Engine.Runtime.IO.SetOutput(stream, new StreamWriter(stream)); 98 | 99 | Compiled = Source.Compile(errors); 100 | Operation = Engine.CreateOperations(); 101 | 102 | try { 103 | Compiled.Execute(Scope); 104 | return FormatOutput(ReadFromStream(stream)); 105 | 106 | } catch(Exception ex) { 107 | return Engine.GetService().FormatException(ex); 108 | } 109 | } 110 | 111 | /// 112 | /// Formats the output of execution 113 | /// 格式化执行输出 114 | /// 115 | /// The output. 116 | /// Output. 117 | private string FormatOutput(string output) 118 | { 119 | return string.IsNullOrEmpty(output) ? string.Empty 120 | : string.Join("\n", output.Remove(output.Length-1) 121 | .Split('\n') 122 | .Reverse().ToArray()); 123 | } 124 | 125 | /// 126 | /// Reads MemoryStream. 127 | /// 读取内存流 128 | /// 129 | /// The from stream. 130 | /// Ms. 131 | private string ReadFromStream(MemoryStream ms) { 132 | 133 | int length = (int)ms.Length; 134 | Byte[] bytes = new Byte[ms.Length]; 135 | ms.Seek(0, SeekOrigin.Begin); 136 | ms.Read(bytes, 0, length); 137 | 138 | return Encoding.GetEncoding("utf-8").GetString(bytes, 0, length); 139 | } 140 | 141 | /// 142 | /// Load runtime Assemblies of Unity3D 143 | /// 加载Unity3D的运行时程序集 144 | /// 145 | private void LoadRuntime() 146 | { 147 | Engine.Runtime.LoadAssembly(typeof(GameObject).Assembly); 148 | } 149 | 150 | public void AddRuntime() 151 | { 152 | Engine.Runtime.LoadAssembly(typeof(T).Assembly); 153 | } 154 | 155 | public void AddRuntime(Type type) 156 | { 157 | Engine.Runtime.LoadAssembly(type.Assembly); 158 | } 159 | 160 | /// 161 | /// Gets the variable or class 162 | /// 获取变量或类 163 | /// 164 | /// The variable. 165 | /// Name. 166 | public object GetVariable(string name) 167 | { 168 | return Operation.Invoke(Scope.GetVariable(name)); 169 | } 170 | 171 | /// 172 | /// Calls the method. 173 | /// 调用这个方法 174 | /// 175 | /// Name. 176 | public void InvokeMethod(object nameClass, string Method, params object[] parameters) 177 | { 178 | object output = new object(); 179 | if(Operation.TryGetMember(nameClass, Method, out output)) { 180 | object Func = Operation.GetMember(nameClass, Method); 181 | Operation.Invoke(Func, parameters); 182 | } 183 | } 184 | 185 | } 186 | -------------------------------------------------------------------------------- /Assets/Script/python/Test.py: -------------------------------------------------------------------------------- 1 | import UnityEngine as u 2 | 3 | class Test(): 4 | 5 | def Awake(self, this): 6 | u.Debug.Log("Awake Method") 7 | 8 | def Start(self, this): 9 | u.Debug.Log("Start Method") 10 | 11 | def Update(self, this): 12 | u.Debug.Log("Start Method") 13 | 14 | -------------------------------------------------------------------------------- /Assets/Script/python/Test1.py: -------------------------------------------------------------------------------- 1 | import UnityEngine as u 2 | 3 | class Test1(): 4 | def Awake(self, this): 5 | u.Debug.Log("Awake Method") 6 | pass 7 | 8 | def Start(self, this): 9 | u.Debug.Log("Start Method") 10 | pass 11 | 12 | def Update(self, this): 13 | this.transform.Rotate(u.Vector3(2,2,1)) -------------------------------------------------------------------------------- /Assets/dll/IronPython.Modules.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wenanlee/Unity3D-Python/d38b62bfbd97ca1857ee652ced8b56a3c253619b/Assets/dll/IronPython.Modules.dll -------------------------------------------------------------------------------- /Assets/dll/IronPython.SQLite.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wenanlee/Unity3D-Python/d38b62bfbd97ca1857ee652ced8b56a3c253619b/Assets/dll/IronPython.SQLite.dll -------------------------------------------------------------------------------- /Assets/dll/IronPython.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wenanlee/Unity3D-Python/d38b62bfbd97ca1857ee652ced8b56a3c253619b/Assets/dll/IronPython.dll -------------------------------------------------------------------------------- /Assets/dll/Microsoft.Dynamic.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wenanlee/Unity3D-Python/d38b62bfbd97ca1857ee652ced8b56a3c253619b/Assets/dll/Microsoft.Dynamic.dll -------------------------------------------------------------------------------- /Assets/dll/Microsoft.Scripting.AspNet.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wenanlee/Unity3D-Python/d38b62bfbd97ca1857ee652ced8b56a3c253619b/Assets/dll/Microsoft.Scripting.AspNet.dll -------------------------------------------------------------------------------- /Assets/dll/Microsoft.Scripting.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wenanlee/Unity3D-Python/d38b62bfbd97ca1857ee652ced8b56a3c253619b/Assets/dll/Microsoft.Scripting.Core.dll -------------------------------------------------------------------------------- /Assets/dll/Microsoft.Scripting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wenanlee/Unity3D-Python/d38b62bfbd97ca1857ee652ced8b56a3c253619b/Assets/dll/Microsoft.Scripting.dll -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 César Augusto D. Azevedo 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_DisableAudio: 0 16 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_SolverIterationCount: 6 13 | m_QueriesHitTriggers: 1 14 | m_EnableAdaptiveForce: 0 15 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 16 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 0 9 | path: Assets/Scene2.unity 10 | - enabled: 1 11 | path: Assets/scenes/Scene.unity 12 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_ExternalVersionControlSupport: Asset Server 8 | m_SerializationMode: 2 9 | m_WebSecurityEmulationEnabled: 0 10 | m_WebSecurityEmulationHostUrl: http://www.mydomain.com/mygame.unity3d 11 | m_DefaultBehaviorMode: 0 12 | m_SpritePackerMode: 0 13 | m_SpritePackerPaddingPower: 1 14 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 15 | m_ProjectGenerationRootNamespace: 16 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_LegacyDeferred: 14 | m_Mode: 1 15 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 16 | m_AlwaysIncludedShaders: 17 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 18 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 19 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 20 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 21 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 22 | - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} 23 | m_PreloadedShaders: [] 24 | m_ShaderSettings: 25 | useScreenSpaceShadows: 0 26 | m_BuildTargetShaderSettings: [] 27 | m_LightmapStripping: 0 28 | m_FogStripping: 0 29 | m_LightmapKeepPlain: 1 30 | m_LightmapKeepDirCombined: 1 31 | m_LightmapKeepDirSeparate: 1 32 | m_LightmapKeepDynamicPlain: 1 33 | m_LightmapKeepDynamicDirCombined: 1 34 | m_LightmapKeepDynamicDirSeparate: 1 35 | m_FogKeepLinear: 1 36 | m_FogKeepExp: 1 37 | m_FogKeepExp2: 1 38 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left cmd 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshAreas: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshLayers.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wenanlee/Unity3D-Python/d38b62bfbd97ca1857ee652ced8b56a3c253619b/ProjectSettings/NavMeshLayers.asset -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_MinPenetrationForPenalty: 0.01 17 | m_BaumgarteScale: 0.2 18 | m_BaumgarteTimeOfImpactScale: 0.75 19 | m_TimeToSleep: 0.5 20 | m_LinearSleepTolerance: 0.01 21 | m_AngularSleepTolerance: 2 22 | m_QueriesHitTriggers: 1 23 | m_QueriesStartInColliders: 1 24 | m_ChangeStopsCallbacks: 0 25 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 26 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 11 7 | productGUID: f4c01287c79a1463f91efb7a97a10358 8 | AndroidProfiler: 0 9 | defaultScreenOrientation: 4 10 | targetDevice: 2 11 | useOnDemandResources: 0 12 | accelerometerFrequency: 60 13 | companyName: DefaultCompany 14 | productName: UnityIronPython 15 | defaultCursor: {fileID: 0} 16 | cursorHotspot: {x: 0, y: 0} 17 | m_SplashScreenBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21176471, a: 1} 18 | m_ShowUnitySplashScreen: 1 19 | m_ShowUnitySplashLogo: 1 20 | m_SplashScreenOverlayOpacity: 1 21 | m_SplashScreenAnimation: 1 22 | m_SplashScreenLogoStyle: 1 23 | m_SplashScreenDrawMode: 0 24 | m_SplashScreenBackgroundAnimationZoom: 1 25 | m_SplashScreenLogoAnimationZoom: 1 26 | m_SplashScreenBackgroundLandscapeAspect: 1 27 | m_SplashScreenBackgroundPortraitAspect: 1 28 | m_SplashScreenBackgroundLandscapeUvs: 29 | serializedVersion: 2 30 | x: 0 31 | y: 0 32 | width: 1 33 | height: 1 34 | m_SplashScreenBackgroundPortraitUvs: 35 | serializedVersion: 2 36 | x: 0 37 | y: 0 38 | width: 1 39 | height: 1 40 | m_SplashScreenLogos: [] 41 | m_SplashScreenBackgroundLandscape: {fileID: 0} 42 | m_SplashScreenBackgroundPortrait: {fileID: 0} 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | m_MobileMTRendering: 0 53 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 54 | iosShowActivityIndicatorOnLoading: -1 55 | androidShowActivityIndicatorOnLoading: -1 56 | tizenShowActivityIndicatorOnLoading: -1 57 | iosAppInBackgroundBehavior: 0 58 | displayResolutionDialog: 1 59 | iosAllowHTTPDownload: 1 60 | allowedAutorotateToPortrait: 0 61 | allowedAutorotateToPortraitUpsideDown: 0 62 | allowedAutorotateToLandscapeRight: 1 63 | allowedAutorotateToLandscapeLeft: 1 64 | useOSAutorotation: 1 65 | use32BitDisplayBuffer: 1 66 | disableDepthAndStencilBuffers: 0 67 | defaultIsFullScreen: 1 68 | defaultIsNativeResolution: 1 69 | runInBackground: 0 70 | captureSingleScreen: 0 71 | muteOtherAudioSources: 0 72 | Prepare IOS For Recording: 0 73 | submitAnalytics: 1 74 | usePlayerLog: 1 75 | bakeCollisionMeshes: 0 76 | forceSingleInstance: 0 77 | resizableWindow: 0 78 | useMacAppStoreValidation: 0 79 | macAppStoreCategory: public.app-category.games 80 | gpuSkinning: 0 81 | graphicsJobs: 0 82 | xboxPIXTextureCapture: 0 83 | xboxEnableAvatar: 0 84 | xboxEnableKinect: 0 85 | xboxEnableKinectAutoTracking: 0 86 | xboxEnableFitness: 0 87 | visibleInBackground: 0 88 | allowFullscreenSwitch: 1 89 | graphicsJobMode: 0 90 | macFullscreenMode: 2 91 | d3d9FullscreenMode: 1 92 | d3d11FullscreenMode: 1 93 | xboxSpeechDB: 0 94 | xboxEnableHeadOrientation: 0 95 | xboxEnableGuest: 0 96 | xboxEnablePIXSampling: 0 97 | n3dsDisableStereoscopicView: 0 98 | n3dsEnableSharedListOpt: 1 99 | n3dsEnableVSync: 0 100 | ignoreAlphaClear: 0 101 | xboxOneResolution: 0 102 | xboxOneMonoLoggingLevel: 0 103 | xboxOneLoggingLevel: 1 104 | videoMemoryForVertexBuffers: 0 105 | psp2PowerMode: 0 106 | psp2AcquireBGM: 1 107 | wiiUTVResolution: 0 108 | wiiUGamePadMSAA: 1 109 | wiiUSupportsNunchuk: 0 110 | wiiUSupportsClassicController: 0 111 | wiiUSupportsBalanceBoard: 0 112 | wiiUSupportsMotionPlus: 0 113 | wiiUSupportsProController: 0 114 | wiiUAllowScreenCapture: 1 115 | wiiUControllerCount: 0 116 | m_SupportedAspectRatios: 117 | 4:3: 1 118 | 5:4: 1 119 | 16:10: 1 120 | 16:9: 1 121 | Others: 1 122 | bundleVersion: 1.0 123 | preloadedAssets: [] 124 | metroInputSource: 0 125 | m_HolographicPauseOnTrackingLoss: 1 126 | xboxOneDisableKinectGpuReservation: 0 127 | xboxOneEnable7thCore: 0 128 | vrSettings: 129 | cardboard: 130 | depthFormat: 0 131 | enableTransitionView: 0 132 | daydream: 133 | depthFormat: 0 134 | useSustainedPerformanceMode: 0 135 | hololens: 136 | depthFormat: 1 137 | protectGraphicsMemory: 0 138 | useHDRDisplay: 0 139 | applicationIdentifier: 140 | Android: com.unity.IronPython 141 | Standalone: unity.DefaultCompany.UnityIronPython 142 | Tizen: com.unity.IronPython 143 | iOS: com.unity.IronPython 144 | tvOS: com.unity.IronPython 145 | buildNumber: 146 | iOS: 0 147 | AndroidBundleVersionCode: 1 148 | AndroidMinSdkVersion: 16 149 | AndroidTargetSdkVersion: 0 150 | AndroidPreferredInstallLocation: 1 151 | aotOptions: 152 | stripEngineCode: 1 153 | iPhoneStrippingLevel: 0 154 | iPhoneScriptCallOptimization: 0 155 | ForceInternetPermission: 0 156 | ForceSDCardPermission: 0 157 | CreateWallpaper: 0 158 | APKExpansionFiles: 0 159 | keepLoadedShadersAlive: 0 160 | StripUnusedMeshComponents: 0 161 | VertexChannelCompressionMask: 162 | serializedVersion: 2 163 | m_Bits: 238 164 | iPhoneSdkVersion: 989 165 | iOSTargetOSVersionString: 7.1 166 | tvOSSdkVersion: 0 167 | tvOSRequireExtendedGameController: 0 168 | tvOSTargetOSVersionString: 169 | uIPrerenderedIcon: 0 170 | uIRequiresPersistentWiFi: 0 171 | uIRequiresFullScreen: 1 172 | uIStatusBarHidden: 1 173 | uIExitOnSuspend: 0 174 | uIStatusBarStyle: 0 175 | iPhoneSplashScreen: {fileID: 0} 176 | iPhoneHighResSplashScreen: {fileID: 0} 177 | iPhoneTallHighResSplashScreen: {fileID: 0} 178 | iPhone47inSplashScreen: {fileID: 0} 179 | iPhone55inPortraitSplashScreen: {fileID: 0} 180 | iPhone55inLandscapeSplashScreen: {fileID: 0} 181 | iPadPortraitSplashScreen: {fileID: 0} 182 | iPadHighResPortraitSplashScreen: {fileID: 0} 183 | iPadLandscapeSplashScreen: {fileID: 0} 184 | iPadHighResLandscapeSplashScreen: {fileID: 0} 185 | appleTVSplashScreen: {fileID: 0} 186 | tvOSSmallIconLayers: [] 187 | tvOSLargeIconLayers: [] 188 | tvOSTopShelfImageLayers: [] 189 | tvOSTopShelfImageWideLayers: [] 190 | iOSLaunchScreenType: 0 191 | iOSLaunchScreenPortrait: {fileID: 0} 192 | iOSLaunchScreenLandscape: {fileID: 0} 193 | iOSLaunchScreenBackgroundColor: 194 | serializedVersion: 2 195 | rgba: 0 196 | iOSLaunchScreenFillPct: 1 197 | iOSLaunchScreenSize: 100 198 | iOSLaunchScreenCustomXibPath: 199 | iOSLaunchScreeniPadType: 0 200 | iOSLaunchScreeniPadImage: {fileID: 0} 201 | iOSLaunchScreeniPadBackgroundColor: 202 | serializedVersion: 2 203 | rgba: 0 204 | iOSLaunchScreeniPadFillPct: 100 205 | iOSLaunchScreeniPadSize: 100 206 | iOSLaunchScreeniPadCustomXibPath: 207 | iOSDeviceRequirements: [] 208 | iOSURLSchemes: [] 209 | iOSBackgroundModes: 0 210 | iOSMetalForceHardShadows: 0 211 | metalEditorSupport: 1 212 | metalAPIValidation: 1 213 | iOSRenderExtraFrameOnPause: 1 214 | appleDeveloperTeamID: 215 | iOSManualSigningProvisioningProfileID: 216 | tvOSManualSigningProvisioningProfileID: 217 | appleEnableAutomaticSigning: 0 218 | AndroidTargetDevice: 0 219 | AndroidSplashScreenScale: 0 220 | androidSplashScreen: {fileID: 0} 221 | AndroidKeystoreName: 222 | AndroidKeyaliasName: 223 | AndroidTVCompatibility: 1 224 | AndroidIsGame: 1 225 | androidEnableBanner: 1 226 | m_AndroidBanners: 227 | - width: 320 228 | height: 180 229 | banner: {fileID: 0} 230 | androidGamepadSupportLevel: 0 231 | resolutionDialogBanner: {fileID: 0} 232 | m_BuildTargetIcons: 233 | - m_BuildTarget: 234 | m_Icons: 235 | - serializedVersion: 2 236 | m_Icon: {fileID: 0} 237 | m_Width: 128 238 | m_Height: 128 239 | m_BuildTargetBatching: [] 240 | m_BuildTargetGraphicsAPIs: [] 241 | m_BuildTargetVRSettings: [] 242 | openGLRequireES31: 0 243 | openGLRequireES31AEP: 0 244 | webPlayerTemplate: APPLICATION:Default 245 | m_TemplateCustomTags: {} 246 | wiiUTitleID: 0005000011000000 247 | wiiUGroupID: 00010000 248 | wiiUCommonSaveSize: 4096 249 | wiiUAccountSaveSize: 2048 250 | wiiUOlvAccessKey: 0 251 | wiiUTinCode: 0 252 | wiiUJoinGameId: 0 253 | wiiUJoinGameModeMask: 0000000000000000 254 | wiiUCommonBossSize: 0 255 | wiiUAccountBossSize: 0 256 | wiiUAddOnUniqueIDs: [] 257 | wiiUMainThreadStackSize: 3072 258 | wiiULoaderThreadStackSize: 1024 259 | wiiUSystemHeapSize: 128 260 | wiiUTVStartupScreen: {fileID: 0} 261 | wiiUGamePadStartupScreen: {fileID: 0} 262 | wiiUDrcBufferDisabled: 0 263 | wiiUProfilerLibPath: 264 | playModeTestRunnerEnabled: 0 265 | actionOnDotNetUnhandledException: 1 266 | enableInternalProfiler: 0 267 | logObjCUncaughtExceptions: 1 268 | enableCrashReportAPI: 0 269 | cameraUsageDescription: 270 | locationUsageDescription: 271 | microphoneUsageDescription: 272 | switchNetLibKey: 273 | switchSocketMemoryPoolSize: 6144 274 | switchSocketAllocatorPoolSize: 128 275 | switchSocketConcurrencyLimit: 14 276 | switchUseCPUProfiler: 0 277 | switchApplicationID: 0x0005000C10000001 278 | switchNSODependencies: 279 | switchTitleNames_0: 280 | switchTitleNames_1: 281 | switchTitleNames_2: 282 | switchTitleNames_3: 283 | switchTitleNames_4: 284 | switchTitleNames_5: 285 | switchTitleNames_6: 286 | switchTitleNames_7: 287 | switchTitleNames_8: 288 | switchTitleNames_9: 289 | switchTitleNames_10: 290 | switchTitleNames_11: 291 | switchTitleNames_12: 292 | switchTitleNames_13: 293 | switchTitleNames_14: 294 | switchPublisherNames_0: 295 | switchPublisherNames_1: 296 | switchPublisherNames_2: 297 | switchPublisherNames_3: 298 | switchPublisherNames_4: 299 | switchPublisherNames_5: 300 | switchPublisherNames_6: 301 | switchPublisherNames_7: 302 | switchPublisherNames_8: 303 | switchPublisherNames_9: 304 | switchPublisherNames_10: 305 | switchPublisherNames_11: 306 | switchPublisherNames_12: 307 | switchPublisherNames_13: 308 | switchPublisherNames_14: 309 | switchIcons_0: {fileID: 0} 310 | switchIcons_1: {fileID: 0} 311 | switchIcons_2: {fileID: 0} 312 | switchIcons_3: {fileID: 0} 313 | switchIcons_4: {fileID: 0} 314 | switchIcons_5: {fileID: 0} 315 | switchIcons_6: {fileID: 0} 316 | switchIcons_7: {fileID: 0} 317 | switchIcons_8: {fileID: 0} 318 | switchIcons_9: {fileID: 0} 319 | switchIcons_10: {fileID: 0} 320 | switchIcons_11: {fileID: 0} 321 | switchIcons_12: {fileID: 0} 322 | switchIcons_13: {fileID: 0} 323 | switchIcons_14: {fileID: 0} 324 | switchSmallIcons_0: {fileID: 0} 325 | switchSmallIcons_1: {fileID: 0} 326 | switchSmallIcons_2: {fileID: 0} 327 | switchSmallIcons_3: {fileID: 0} 328 | switchSmallIcons_4: {fileID: 0} 329 | switchSmallIcons_5: {fileID: 0} 330 | switchSmallIcons_6: {fileID: 0} 331 | switchSmallIcons_7: {fileID: 0} 332 | switchSmallIcons_8: {fileID: 0} 333 | switchSmallIcons_9: {fileID: 0} 334 | switchSmallIcons_10: {fileID: 0} 335 | switchSmallIcons_11: {fileID: 0} 336 | switchSmallIcons_12: {fileID: 0} 337 | switchSmallIcons_13: {fileID: 0} 338 | switchSmallIcons_14: {fileID: 0} 339 | switchManualHTML: 340 | switchAccessibleURLs: 341 | switchLegalInformation: 342 | switchMainThreadStackSize: 1048576 343 | switchPresenceGroupId: 0x0005000C10000001 344 | switchLogoHandling: 0 345 | switchReleaseVersion: 0 346 | switchDisplayVersion: 1.0.0 347 | switchStartupUserAccount: 0 348 | switchTouchScreenUsage: 0 349 | switchSupportedLanguagesMask: 0 350 | switchLogoType: 0 351 | switchApplicationErrorCodeCategory: 352 | switchUserAccountSaveDataSize: 0 353 | switchUserAccountSaveDataJournalSize: 0 354 | switchAttribute: 0 355 | switchCardSpecSize: 4 356 | switchCardSpecClock: 25 357 | switchRatingsMask: 0 358 | switchRatingsInt_0: 0 359 | switchRatingsInt_1: 0 360 | switchRatingsInt_2: 0 361 | switchRatingsInt_3: 0 362 | switchRatingsInt_4: 0 363 | switchRatingsInt_5: 0 364 | switchRatingsInt_6: 0 365 | switchRatingsInt_7: 0 366 | switchRatingsInt_8: 0 367 | switchRatingsInt_9: 0 368 | switchRatingsInt_10: 0 369 | switchRatingsInt_11: 0 370 | switchLocalCommunicationIds_0: 0x0005000C10000001 371 | switchLocalCommunicationIds_1: 372 | switchLocalCommunicationIds_2: 373 | switchLocalCommunicationIds_3: 374 | switchLocalCommunicationIds_4: 375 | switchLocalCommunicationIds_5: 376 | switchLocalCommunicationIds_6: 377 | switchLocalCommunicationIds_7: 378 | switchParentalControl: 0 379 | switchAllowsScreenshot: 1 380 | switchDataLossConfirmation: 0 381 | ps4NPAgeRating: 12 382 | ps4NPTitleSecret: 383 | ps4NPTrophyPackPath: 384 | ps4ParentalLevel: 1 385 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 386 | ps4Category: 0 387 | ps4MasterVersion: 01.00 388 | ps4AppVersion: 01.00 389 | ps4AppType: 0 390 | ps4ParamSfxPath: 391 | ps4VideoOutPixelFormat: 0 392 | ps4VideoOutInitialWidth: 1920 393 | ps4VideoOutBaseModeInitialWidth: 1920 394 | ps4VideoOutReprojectionRate: 120 395 | ps4PronunciationXMLPath: 396 | ps4PronunciationSIGPath: 397 | ps4BackgroundImagePath: 398 | ps4StartupImagePath: 399 | ps4SaveDataImagePath: 400 | ps4SdkOverride: 401 | ps4BGMPath: 402 | ps4ShareFilePath: 403 | ps4ShareOverlayImagePath: 404 | ps4PrivacyGuardImagePath: 405 | ps4NPtitleDatPath: 406 | ps4RemotePlayKeyAssignment: -1 407 | ps4RemotePlayKeyMappingDir: 408 | ps4PlayTogetherPlayerCount: 0 409 | ps4EnterButtonAssignment: 1 410 | ps4ApplicationParam1: 0 411 | ps4ApplicationParam2: 0 412 | ps4ApplicationParam3: 0 413 | ps4ApplicationParam4: 0 414 | ps4DownloadDataSize: 0 415 | ps4GarlicHeapSize: 2048 416 | ps4ProGarlicHeapSize: 2560 417 | ps4Passcode: 5PN2qmWqBlQ9wQj99nsQzldVI5ZuGXbE 418 | ps4UseDebugIl2cppLibs: 0 419 | ps4pnSessions: 1 420 | ps4pnPresence: 1 421 | ps4pnFriends: 1 422 | ps4pnGameCustomData: 1 423 | playerPrefsSupport: 0 424 | restrictedAudioUsageRights: 0 425 | ps4UseResolutionFallback: 0 426 | ps4ReprojectionSupport: 0 427 | ps4UseAudio3dBackend: 0 428 | ps4SocialScreenEnabled: 0 429 | ps4ScriptOptimizationLevel: 3 430 | ps4Audio3dVirtualSpeakerCount: 14 431 | ps4attribCpuUsage: 0 432 | ps4PatchPkgPath: 433 | ps4PatchLatestPkgPath: 434 | ps4PatchChangeinfoPath: 435 | ps4PatchDayOne: 0 436 | ps4attribUserManagement: 0 437 | ps4attribMoveSupport: 0 438 | ps4attrib3DSupport: 0 439 | ps4attribShareSupport: 0 440 | ps4attribExclusiveVR: 0 441 | ps4disableAutoHideSplash: 0 442 | ps4videoRecordingFeaturesUsed: 0 443 | ps4contentSearchFeaturesUsed: 0 444 | ps4attribEyeToEyeDistanceSettingVR: 0 445 | ps4IncludedModules: [] 446 | monoEnv: 447 | psp2Splashimage: {fileID: 0} 448 | psp2NPTrophyPackPath: 449 | psp2NPSupportGBMorGJP: 0 450 | psp2NPAgeRating: 12 451 | psp2NPTitleDatPath: 452 | psp2NPCommsID: 453 | psp2NPCommunicationsID: 454 | psp2NPCommsPassphrase: 455 | psp2NPCommsSig: 456 | psp2ParamSfxPath: 457 | psp2ManualPath: 458 | psp2LiveAreaGatePath: 459 | psp2LiveAreaBackroundPath: 460 | psp2LiveAreaPath: 461 | psp2LiveAreaTrialPath: 462 | psp2PatchChangeInfoPath: 463 | psp2PatchOriginalPackage: 464 | psp2PackagePassword: RK5RhRXdCdG5nG5azdNMK66MuCV6GXi5 465 | psp2KeystoneFile: 466 | psp2MemoryExpansionMode: 0 467 | psp2DRMType: 0 468 | psp2StorageType: 0 469 | psp2MediaCapacity: 0 470 | psp2DLCConfigPath: 471 | psp2ThumbnailPath: 472 | psp2BackgroundPath: 473 | psp2SoundPath: 474 | psp2TrophyCommId: 475 | psp2TrophyPackagePath: 476 | psp2PackagedResourcesPath: 477 | psp2SaveDataQuota: 10240 478 | psp2ParentalLevel: 1 479 | psp2ShortTitle: Not Set 480 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 481 | psp2Category: 0 482 | psp2MasterVersion: 01.00 483 | psp2AppVersion: 01.00 484 | psp2TVBootMode: 0 485 | psp2EnterButtonAssignment: 2 486 | psp2TVDisableEmu: 0 487 | psp2AllowTwitterDialog: 1 488 | psp2Upgradable: 0 489 | psp2HealthWarning: 0 490 | psp2UseLibLocation: 0 491 | psp2InfoBarOnStartup: 0 492 | psp2InfoBarColor: 0 493 | psp2UseDebugIl2cppLibs: 0 494 | psmSplashimage: {fileID: 0} 495 | splashScreenBackgroundSourceLandscape: {fileID: 0} 496 | splashScreenBackgroundSourcePortrait: {fileID: 0} 497 | spritePackerPolicy: 498 | webGLMemorySize: 256 499 | webGLExceptionSupport: 0 500 | webGLNameFilesAsHashes: 0 501 | webGLDataCaching: 0 502 | webGLDebugSymbols: 0 503 | webGLEmscriptenArgs: 504 | webGLModulesDirectory: 505 | webGLTemplate: APPLICATION:Default 506 | webGLAnalyzeBuildSize: 0 507 | webGLUseEmbeddedResources: 0 508 | webGLUseWasm: 0 509 | webGLCompressionFormat: 1 510 | scriptingDefineSymbols: {} 511 | platformArchitecture: 512 | iOS: 2 513 | tvOS: 1 514 | scriptingBackend: 515 | Android: 0 516 | Standalone: 0 517 | WebGL: 1 518 | iOS: 0 519 | tvOS: 1 520 | incrementalIl2cppBuild: 521 | iOS: 1 522 | tvOS: 0 523 | additionalIl2CppArgs: 524 | apiCompatibilityLevelPerPlatform: {} 525 | m_RenderingPath: 1 526 | m_MobileRenderingPath: 1 527 | metroPackageName: UnityIronPython 528 | metroPackageVersion: 529 | metroCertificatePath: 530 | metroCertificatePassword: 531 | metroCertificateSubject: 532 | metroCertificateIssuer: 533 | metroCertificateNotAfter: 0000000000000000 534 | metroApplicationDescription: UnityIronPython 535 | wsaImages: {} 536 | metroTileShortName: 537 | metroCommandLineArgsFile: 538 | metroTileShowName: 0 539 | metroMediumTileShowName: 0 540 | metroLargeTileShowName: 0 541 | metroWideTileShowName: 0 542 | metroDefaultTileSize: 1 543 | metroTileForegroundText: 1 544 | metroTileBackgroundColor: {r: 0, g: 0, b: 0, a: 1} 545 | metroSplashScreenBackgroundColor: {r: 0, g: 0, b: 0, a: 1} 546 | metroSplashScreenUseBackgroundColor: 0 547 | platformCapabilities: {} 548 | metroFTAName: 549 | metroFTAFileTypes: [] 550 | metroProtocolName: 551 | metroCompilationOverrides: 1 552 | tizenProductDescription: 553 | tizenProductURL: 554 | tizenSigningProfileName: 555 | tizenGPSPermissions: 0 556 | tizenMicrophonePermissions: 0 557 | tizenDeploymentTarget: 558 | tizenDeploymentTargetType: -1 559 | tizenMinOSVersion: 1 560 | n3dsUseExtSaveData: 0 561 | n3dsCompressStaticMem: 1 562 | n3dsExtSaveDataNumber: 0x12345 563 | n3dsStackSize: 131072 564 | n3dsTargetPlatform: 2 565 | n3dsRegion: 7 566 | n3dsMediaSize: 0 567 | n3dsLogoStyle: 3 568 | n3dsTitle: GameName 569 | n3dsProductCode: 570 | n3dsApplicationId: 0xFF3FF 571 | stvDeviceAddress: 572 | stvProductDescription: 573 | stvProductAuthor: 574 | stvProductAuthorEmail: 575 | stvProductLink: 576 | stvProductCategory: 0 577 | XboxOneProductId: 578 | XboxOneUpdateKey: 579 | XboxOneSandboxId: 580 | XboxOneContentId: 581 | XboxOneTitleId: 582 | XboxOneSCId: 583 | XboxOneGameOsOverridePath: 584 | XboxOnePackagingOverridePath: 585 | XboxOneAppManifestOverridePath: 586 | XboxOnePackageEncryption: 0 587 | XboxOnePackageUpdateGranularity: 2 588 | XboxOneDescription: 589 | XboxOneLanguage: 590 | - enus 591 | XboxOneCapability: [] 592 | XboxOneGameRating: {} 593 | XboxOneIsContentPackage: 0 594 | XboxOneEnableGPUVariability: 0 595 | XboxOneSockets: {} 596 | XboxOneSplashScreen: {fileID: 0} 597 | XboxOneAllowedProductIds: [] 598 | XboxOnePersistentLocalStorageSize: 0 599 | xboxOneScriptCompiler: 0 600 | vrEditorSettings: 601 | daydream: 602 | daydreamIconForeground: {fileID: 0} 603 | daydreamIconBackground: {fileID: 0} 604 | cloudServicesEnabled: {} 605 | facebookSdkVersion: 7.9.1 606 | apiCompatibilityLevel: 1 607 | cloudProjectId: 608 | projectName: 609 | organizationId: 610 | cloudEnabled: 0 611 | enableNewInputSystem: 0 612 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.6.1f1 2 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 3 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Fastest 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 2 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | blendWeights: 1 21 | textureQuality: 1 22 | anisotropicTextures: 0 23 | antiAliasing: 0 24 | softParticles: 0 25 | softVegetation: 0 26 | realtimeReflectionProbes: 0 27 | billboardsFaceCameraPosition: 0 28 | vSyncCount: 0 29 | lodBias: 0.3 30 | maximumLODLevel: 0 31 | particleRaycastBudget: 4 32 | asyncUploadTimeSlice: 2 33 | asyncUploadBufferSize: 4 34 | excludedTargetPlatforms: [] 35 | - serializedVersion: 2 36 | name: Fast 37 | pixelLightCount: 0 38 | shadows: 0 39 | shadowResolution: 0 40 | shadowProjection: 1 41 | shadowCascades: 1 42 | shadowDistance: 20 43 | shadowNearPlaneOffset: 2 44 | shadowCascade2Split: 0.33333334 45 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 46 | blendWeights: 2 47 | textureQuality: 0 48 | anisotropicTextures: 0 49 | antiAliasing: 0 50 | softParticles: 0 51 | softVegetation: 0 52 | realtimeReflectionProbes: 0 53 | billboardsFaceCameraPosition: 0 54 | vSyncCount: 0 55 | lodBias: 0.4 56 | maximumLODLevel: 0 57 | particleRaycastBudget: 16 58 | asyncUploadTimeSlice: 2 59 | asyncUploadBufferSize: 4 60 | excludedTargetPlatforms: [] 61 | - serializedVersion: 2 62 | name: Simple 63 | pixelLightCount: 1 64 | shadows: 1 65 | shadowResolution: 0 66 | shadowProjection: 1 67 | shadowCascades: 1 68 | shadowDistance: 20 69 | shadowNearPlaneOffset: 2 70 | shadowCascade2Split: 0.33333334 71 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 72 | blendWeights: 2 73 | textureQuality: 0 74 | anisotropicTextures: 1 75 | antiAliasing: 0 76 | softParticles: 0 77 | softVegetation: 0 78 | realtimeReflectionProbes: 0 79 | billboardsFaceCameraPosition: 0 80 | vSyncCount: 0 81 | lodBias: 0.7 82 | maximumLODLevel: 0 83 | particleRaycastBudget: 64 84 | asyncUploadTimeSlice: 2 85 | asyncUploadBufferSize: 4 86 | excludedTargetPlatforms: [] 87 | - serializedVersion: 2 88 | name: Good 89 | pixelLightCount: 2 90 | shadows: 2 91 | shadowResolution: 1 92 | shadowProjection: 1 93 | shadowCascades: 2 94 | shadowDistance: 40 95 | shadowNearPlaneOffset: 2 96 | shadowCascade2Split: 0.33333334 97 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 98 | blendWeights: 2 99 | textureQuality: 0 100 | anisotropicTextures: 1 101 | antiAliasing: 0 102 | softParticles: 0 103 | softVegetation: 1 104 | realtimeReflectionProbes: 1 105 | billboardsFaceCameraPosition: 1 106 | vSyncCount: 1 107 | lodBias: 1 108 | maximumLODLevel: 0 109 | particleRaycastBudget: 256 110 | asyncUploadTimeSlice: 2 111 | asyncUploadBufferSize: 4 112 | excludedTargetPlatforms: [] 113 | - serializedVersion: 2 114 | name: Beautiful 115 | pixelLightCount: 3 116 | shadows: 2 117 | shadowResolution: 2 118 | shadowProjection: 1 119 | shadowCascades: 2 120 | shadowDistance: 70 121 | shadowNearPlaneOffset: 2 122 | shadowCascade2Split: 0.33333334 123 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 124 | blendWeights: 4 125 | textureQuality: 0 126 | anisotropicTextures: 2 127 | antiAliasing: 2 128 | softParticles: 1 129 | softVegetation: 1 130 | realtimeReflectionProbes: 1 131 | billboardsFaceCameraPosition: 1 132 | vSyncCount: 1 133 | lodBias: 1.5 134 | maximumLODLevel: 0 135 | particleRaycastBudget: 1024 136 | asyncUploadTimeSlice: 2 137 | asyncUploadBufferSize: 4 138 | excludedTargetPlatforms: [] 139 | - serializedVersion: 2 140 | name: Fantastic 141 | pixelLightCount: 4 142 | shadows: 2 143 | shadowResolution: 2 144 | shadowProjection: 1 145 | shadowCascades: 4 146 | shadowDistance: 150 147 | shadowNearPlaneOffset: 2 148 | shadowCascade2Split: 0.33333334 149 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 150 | blendWeights: 4 151 | textureQuality: 0 152 | anisotropicTextures: 2 153 | antiAliasing: 2 154 | softParticles: 1 155 | softVegetation: 1 156 | realtimeReflectionProbes: 1 157 | billboardsFaceCameraPosition: 1 158 | vSyncCount: 1 159 | lodBias: 2 160 | maximumLODLevel: 0 161 | particleRaycastBudget: 4096 162 | asyncUploadTimeSlice: 2 163 | asyncUploadBufferSize: 4 164 | excludedTargetPlatforms: [] 165 | m_PerPlatformDefaultQuality: 166 | Android: 2 167 | BlackBerry: 2 168 | FlashPlayer: 3 169 | GLES Emulation: 3 170 | PS3: 3 171 | PS4: 3 172 | PSM: 3 173 | PSP2: 3 174 | Samsung TV: 2 175 | Standalone: 3 176 | Tizen: 2 177 | WP8: 3 178 | Web: 3 179 | Windows Store Apps: 3 180 | XBOX360: 3 181 | XboxOne: 3 182 | iPhone: 2 183 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - ground 17 | - ground2 18 | - ground3 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_Enabled: 0 14 | m_CaptureEditorExceptions: 1 15 | UnityPurchasingSettings: 16 | m_Enabled: 0 17 | m_TestMode: 0 18 | UnityAnalyticsSettings: 19 | m_Enabled: 0 20 | m_InitializeOnStartup: 1 21 | m_TestMode: 0 22 | m_TestEventUrl: 23 | m_TestConfigUrl: 24 | UnityAdsSettings: 25 | m_Enabled: 0 26 | m_InitializeOnStartup: 1 27 | m_TestMode: 0 28 | m_EnabledPlatforms: 4294967295 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | PerformanceReportingSettings: 32 | m_Enabled: 0 33 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Unity3D-Python-Editor 2 | ===================== 3 | 4 | 在unity3d里使用python 5 | unity版本5.6.1 6 | 7 | > NOTE 8 | > 9 | > 我这是用@cesardeazevedo那里弄到的,然后我精简了一下,现在只需要改动一下就可以用了.操作如下: 10 | > 在游戏物体上 绑定 PyRun.cs 在 PyRun.cs 上 绑定 PyFile和PyFilePath 就行了 11 | 12 | ``` 13 | public class PyRun : MonoBehaviour 14 | { 15 | //Python文件 16 | public Object pyFile; 17 | //Python文件路径 18 | public string pyFilePath="Assets/src/python/"; 19 | ``` 20 | 21 | ## LICENSE 22 | [MIT](./LICENSE) 23 | --------------------------------------------------------------------------------