Search Issue Tracker
Fixed in 2022.1.X
Votes
0
Found in
Issue ID
1341400
Regression
No
Reflection Probe inspector preview breaks whith custom Cubemap inspector
When there is a custom Cubemap asset inspector in the project or in a package, the Reflection Probe preview in the inspector throws errors (see gif)
```
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.ReflectionProbeEditor.OnPreviewSettings () (at <830a4c44422a4fb282f7e1f575d71e27>:0)
```
Here's the simple code snippet that causes the error:
```
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(Cubemap))]
public class NewBehaviourScript : Editor {}
```
Repro steps:
- Open a Unity project with either builtin RP or Universal RP
- Create a Reflection Probe and Bake it
- Click on the collapsed preview of the reflection probe at the bottom to show it
- Observe that there are errors in the console.
Repro in Unity 2020.3.8f1 with Built-in RP and Universal RP.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment