Search Issue Tracker
Fixed in 2020.2.9f1
Votes
0
Found in
2020.2.0a19
2020.2.0a21
Issue ID
1272121
Regression
Yes
[Scene Template] Null reference exception is thrown on entering Play Mode when the Scene Template window open in Project Setting
On entering Play Mode with Scene Template window open in Project Settings throw Null reference exception in the console and Scene Template window turns blank. refer attached video.
Steps to repro:
1. Create a New Project
2. Project Settings > Scene Template
3. Enter Play Mode
Actual Result:
Null reference exception in the console and Scene Template window turns blank.
Expected Result:
No errors in the console and Scene Template window should visible fairly.
Reproducible on:
2020.2.0a21, 2020.2.0a19
Not reproducible with:
2020.2.0a18, 2020.2.0a15
Note:
Scene Template feature introduced in 2020.2.0a15
Environment:
Windows 10 and Mac 10.15
Stack Trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorStyles.get_label () (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/EditorStyles.cs:18)
UnityEditor.SceneTemplate.SceneTemplateProjectSettings+<>c.<CreateSettings>b__27_3 (UnityEngine.GUIContent content) (at /Users/builduser/buildslave/unity/build/Modules/SceneTemplateEditor/SceneTemplateProjectSettings.cs:385)
System.Linq.Enumerable.Max[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
UnityEditor.SceneTemplate.SceneTemplateProjectSettings+<>c.<CreateSettings>b__27_0 (System.String text, UnityEngine.UIElements.VisualElement rootElement) (at /Users/builduser/buildslave/unity/build/Modules/SceneTemplateEditor/SceneTemplateProjectSettings.cs:385)
UnityEditor.SettingsProvider.OnActivate (System.String searchContext, UnityEngine.UIElements.VisualElement rootElement) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Settings/SettingsProvider.cs:76)
UnityEditor.SettingsWindow.ProviderChanged (UnityEditor.SettingsProvider lastSelectedProvider, UnityEditor.SettingsProvider newlySelectedProvider) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Settings/SettingsWindow.cs:240)
UnityEditor.SettingsTreeView.SelectionChanged (System.Collections.Generic.IList`1[T] selectedIds) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Settings/SettingsTreeView.cs:66)
UnityEditor.SettingsTreeView.FocusSelection (System.Int32 selectedId) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Settings/SettingsTreeView.cs:46)
UnityEditor.SettingsWindow.SelectProviderByName (System.String name) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Settings/SettingsWindow.cs:80)
UnityEditor.SettingsWindow.RestoreSelection () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Settings/SettingsWindow.cs:188)
UnityEditor.SettingsWindow.OnEnable () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Settings/SettingsWindow.cs:106)
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
- Freeze/crash on DynamicHeapAllocator::Allocate when opening a specific project
- Text Settings Inspector sections names have no padding
- UI elements shrinking, misaligned buttons, swapped icons, or incorrect styles when rapidly cycling through Scenes in the Player
- Text field does not disappear if Ctrl+Z is pressed while editing in Viewport
- CullingResults.GetShadowCasterBounds Results Remain Unchanged Despite Restricting Affected Objects with Rendering Layers
Resolution Note (fix version 2020.2.9f1):
- Fix exception when New Scene Dialog is domain reloading
- Cannot pop the New Scene Dialog isPlaying (since creating a new scene is forbidden anyway)
- If oging to play mode and dialog is open : we close it.