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
- Character text is not bold in the title of GameObjects in the Inspector when naming using specific language characters
- IndexOutOfRangeException and GUI Error get thrown in Scene View when Articulation Body Edit Joints is set to "Edit the joint angular limits"
- Volumetric fog is not rendered around GameObjects that are baked with APV when Sky Occlusion is enabled
- UI Text color is incorrect when text is rendered on SubMeshUI
- "Invalid SortingGroup index set in Renderer" errors when making many modifications in same frame
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