Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf0e3fd

Browse files
committed
Switch to .NET Standard 2.1
1 parent 7a913b4 commit cf0e3fd

File tree

6 files changed

+20
-4
lines changed

6 files changed

+20
-4
lines changed

Assets/Plugins.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
296 KB
Binary file not shown.

Assets/Plugins/Microsoft.CSharp.dll.meta

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Scripts/UnityPython.asmdef

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"allowUnsafeCode": true,
88
"overrideReferences": true,
99
"precompiledReferences": [
10+
"Microsoft.CSharp.dll",
1011
"Python.Runtime.dll"
1112
],
1213
"autoReferenced": true,

ProjectSettings/ProjectSettings.asset

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,10 @@ PlayerSettings:
478478
m_Height: 1024
479479
m_Kind: 4
480480
m_SubKind: App Store
481-
m_BuildTargetBatching: []
481+
m_BuildTargetBatching:
482+
- m_BuildTarget: Standalone
483+
m_StaticBatching: 1
484+
m_DynamicBatching: 0
482485
m_BuildTargetShaderSettings: []
483486
m_BuildTargetGraphicsJobs: []
484487
m_BuildTargetGraphicsJobMode: []
@@ -799,7 +802,7 @@ PlayerSettings:
799802
gcIncremental: 1
800803
gcWBarrierValidation: 0
801804
apiCompatibilityLevelPerPlatform: {}
802-
editorAssembliesCompatibilityLevel: 2
805+
editorAssembliesCompatibilityLevel: 3
803806
m_RenderingPath: 1
804807
m_MobileRenderingPath: 1
805808
metroPackageName: 2D_URP
@@ -876,7 +879,7 @@ PlayerSettings:
876879
hmiCpuConfiguration:
877880
hmiLogStartupTiming: 0
878881
qnxGraphicConfPath:
879-
apiCompatibilityLevel: 3
882+
apiCompatibilityLevel: 6
880883
captureStartupLogs: {}
881884
activeInputHandler: 2
882885
windowsGamepadBackendHint: 0

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Development Environment
44

55
- Windows
6-
- Unity6000.1.7f1 (.NET Framework is required at Api Compatibility Level)
6+
- Unity6000.1.7f1 (.NET Framework or both .NET Standard 2.1 and [Microsoft.CSharp](https://www.nuget.org/packages/microsoft.csharp/) is required at Api Compatibility Level)
77
- [Python.NET](https://www.nuget.org/packages/pythonnet) 3.0.5
88
- [Python Embeddable Package](https://www.python.org/downloads/windows/) 3.11.3
99

@@ -24,6 +24,8 @@ This is a sample project that integrates Unity and Python.NET. Pressing the *Plo
2424
+ PythonLifeCycle.cs : Python.NET initializer
2525
+ PlotRandom.cs : Call python script from C# using Python.NET for Unity UI
2626
+ UIEventHandler.cs : Call python script from C# using Python.NET for UI Toolkit
27+
+ Plugins/
28+
+ Microsoft.CSharp.dll : Need for .NET Standard 2.1
2729
+ StreamingAssets/
2830
+ python-3.11.3-embed-amd64/ : python runtime
2931
+ myproject/

0 commit comments

Comments
 (0)