Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2020.3.X, 2021.1.X
Votes
0
Found in
2020.2.6f1
2021.1.0b8
2021.1.0b9
2021.2.0a5
Issue ID
1317707
Regression
Yes
[Preset] NullReferenceException thrown on disabling "Auto Graphics API for Windows" checkbox in player settings preset asset
NullReferenceException error thrown on disabling "Auto Graphics API for Windows" checkbox in player settings preset asset.
Steps to repro:
1. Create a new project.
2. Edit > Project Settings > Player > create its preset.
3. Project > Select Player Settings preset asset > Inspector.
4. Disable "Auto Graphics API for Windows" checkbox.
Actual Result:
NullReferenceException error is thrown in the console.
Expected Result:
No errors in the console.
Reproducible in:
2021.2.0a6, 2021.2.0a5, 2021.1.0b9, 2021.1.0b8, 2020.2.7f1, 2020.2.6f1.
Working Fine in:
2021.2.0a4, 2021.1.0b7, 2020.2.5f1.
Environment:
Occurring on Windows 10 & Mac 10.15.
Stack trace:
NullReferenceException: SerializedObject of SerializedProperty has been Disposed.
UnityEditor.SerializedProperty.get_propertyType () (at <374fc8f7339747be937094441020097b>:0)
UnityEditor.EditorGUILayout.IsChildrenIncluded (UnityEditor.SerializedProperty prop) (at <374fc8f7339747be937094441020097b>:0)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, UnityEngine.GUILayoutOption[] options) (at <374fc8f7339747be937094441020097b>:0)
UnityEditor.PlayerSettingsEditor.OtherSectionRenderingGUI (UnityEditor.Build.BuildPlatform platform, UnityEditor.BuildTargetGroup targetGroup, UnityEditor.Modules.ISettingEditorExtension settingsExtension) (at <374fc8f7339747be937094441020097b>:0)
UnityEditor.PlayerSettingsEditor.OtherSectionGUI (UnityEditor.Build.BuildPlatform platform, UnityEditor.BuildTargetGroup targetGroup, UnityEditor.Modules.ISettingEditorExtension settingsExtension, System.Int32 sectionIndex) (at <374fc8f7339747be937094441020097b>:0)
UnityEditor.PlayerSettingsEditor.OnInspectorGUI () (at <374fc8f7339747be937094441020097b>:0)
UnityEditor.Presets.PresetEditor.DrawInternalInspector () (at <374fc8f7339747be937094441020097b>:0)
UnityEditor.Presets.PresetEditor.DrawPresetData () (at <374fc8f7339747be937094441020097b>:0)
UnityEditor.Presets.PresetEditor.OnInspectorGUI () (at <374fc8f7339747be937094441020097b>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <cfee44c50c74452d92e0643773711d9d>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Editor freezes briefly when "multi-selecting" TextMeshPro GameObjects In the Hierarchy window in Prefab Mode, if 5 or more Inspector windows are open
- OnEndDrag event not triggered when losing Editor focus during simultaneous Left and Right mouse drag
- Texture displays visual artifacts and has a broken aspect ratio when it is imported in RGB 48-bit format
- Diagnostic Warning Resets When Navigating Away and Returning to Diagnostics Settings
- Checkbox Collides with Text in Shader Graph Preferences Settings
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0a10
Resolution Note (fix version 2021.1):
Fixed in 2021.1.0f1
Resolution Note (fix version 2020.3):
Fixed in 2020.3.1f1