Search Issue Tracker
Fixed in 2.1.0
Votes
0
Found in [Package]
2.0.0-preview.4.
Issue ID
1257236
Regression
No
NullReferenceException error is thrown on selecting GeneralSettings preset asset
NullReferenceException error is thrown on selecting AdaptivePerformanceGeneralSettings preset asset after deleting AdaptivePerformanceGeneralSettings asset.
Steps to repro:
1. Create a new project.
2. Edit > Project Settings > Adaptive Performance > Install.
3. Project Winodw > Select AdaptivePerformanceGeneralSettings > create its Preset.
4. Project Window > Delete AdaptivePerformanceGeneralSettings.
5. Select AdaptivePerformanceGeneralSettings preset asset.
Actual Result:
NullReferenceException is thrown in the console.
Expected Result:
No error in the console.
Reproducible in:
2020.2.0a15, 2020.1.0b13, 2020.1.0a11 with Package Version 2.0.0-preview.8.
Note: Adaptive Performance and simulator option is not available in Project settings with Package Version 2.0.0-preview.4.
Environment:
Occurring on Windows 10 & Mac 10.15.
Stacktrace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.AdaptivePerformance.Editor.AdaptivePerformanceGeneralSettingsPerBuildTarget.OnEnable () (at library/packagecache/com.unity.adaptiveperformance@2.0.0-preview.8/editor/management/adaptiveperformancegeneralsettingsperbuildtarget.cs:38)
UnityEditor.Presets.PresetEditor:OnEnable()
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ConvertBufferToEXRBuffer when Lighting Generation is cancelled
- [URP] TrailEffect in URP package samples does not draw Trail Effect
- "NullReferenceException" error is thrown when calling UIDocument.runtimePanel in OnEnable with ExecuteInEditMode
- Graphics.Blit() performs the operation only to the last display when a multi-display environment is used
- [Windows] Multiple Separation Lines are present in the Light Create Menu
Add comment