Search Issue Tracker
Active
Under Consideration for 6000.6.X
Votes
0
Found in
6000.6.0a2
Issue ID
UUM-138545
Regression
Yes
Editor defaults to .NET 4.6 instead of .NET 4.8 when switching scripting API compatibility level to .NET Framework
Steps to reproduce:
- Create a new project
- Open Edit > Project Settings > Player
- Switch API Compatibility Level to .NET Framework
- Create a new script with
“Debug.Log(PlayerSettings.GetApiCompatibilityLevel(NamedBuildTarget.Standalone));“
To get the API compatibility level in the console
Actual results:
Editor defaults to .NET 4.6 instead of .NET 4.8 as stated in the documentation:
[https://docs.unity3d.com/6000.6/Documentation/Manual/dotnet-profile-support.html]
Expected results:
Editor defaults to .NET 4.8
Reproducible with versions:
6000.6.0a2 (64de5ee36373)
Not reproducible with versions:
2022.3.74f1 ( f81e190e19ca), 6000.0.72f1 (b731fd3ae857), 6000.3.12f1 (fca03ac9b0d5), 6000.4.1f1 (336a400b9ea2), 6000.5.0b2 (4427344da5e9), 6000.6.0a1 (7dc703ab9bd8)
Tested on (OS):
MacOS M1 Sequoia 15.7.4
Notes:
Example script:
using UnityEditor;
using UnityEditor.Build;
using UnityEngine;
[InitializeOnLoad]
public class PrintApiCompLevel
{
static PrintApiCompLevel()
{
Debug.Log(PlayerSettings.GetApiCompatibilityLevel(NamedBuildTarget.Standalone)); }
}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Build fails when building a project containing an 18+ dimension array with IL2CPP
- [Android][Sentis] Human poses are not detected when using the BlazePose model
- Sprite Editor Outline Tool Overlay is not displayed when no Sprite is selected
- “No method with RuntimeInitializeOnLoadMethod attribute” warning from ReadmeEditor.cs is thrown after installing Project Auditor Rules
- Projection matrix is altered when using RasterCommandBuffer.ClearRenderTarget on DX12 and Metal
Add comment