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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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