Search Issue Tracker
Fixed in 2020.2.X
Votes
0
Found in
2020.2.0a1
2020.2.0a2
Issue ID
1225028
Regression
No
[Camera] NullReferenceException throw on adding the "Scriptable Camera" component
Adding the "Scriptable Camera" component causes the editor to throw NullReferenceException continuously and component properties are not showing in the inspector, refer the attached video.
Steps to repro:
1. Create a new project
2. Hierarchy > Create Empty GameObject
3. Add "Scriptable Camera" component in the Inspector
Actual Result:
NullReferenceException is thrown on adding the "Scriptable Camera" component.
Expected Result:
"Scriptable Camera" component is added without any errors.
Occurring on: 2020.2.0a2, 2020.2.0a1
Note: Scriptable Camera is introduced in 2020.2.0a1
Environment:
Windows 10 & macOS 10.14
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorGUI+EnumNamesCache.GetEnumLocalizedGUIContents (UnityEditor.SerializedProperty property) (at <add04920b5a84c6794c0fcbe71769dfc>:0)
UnityEditor.EditorGUI.EnumPopup (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at <add04920b5a84c6794c0fcbe71769dfc>:0)
UnityEditor.EditorGUI.DefaultPropertyField (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at <add04920b5a84c6794c0fcbe71769dfc>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at <add04920b5a84c6794c0fcbe71769dfc>:0)
UnityEditor.GenericInspector.OnOptimizedInspectorGUI (UnityEngine.Rect contentRect) (at <add04920b5a84c6794c0fcbe71769dfc>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <add04920b5a84c6794c0fcbe71769dfc>: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
- [VFX Graph] ArcCone Direction computation is wrong in Base Mode
- [Android] [Galaxy Tab] A singular Pen touch logs a Pen touch event and a singular finger touch event when logged using "VisualElement.RegisterCallback" with "Pointer(Up/Down)Event"
- Crash on D3D12DescriptorCache::Deallocate or vkGetInstanceProcAddr when loading RenderDoc in a specific Scene
- [HDRP] Lit material preview is rendered incorrectly with a mask map
- The "LerpWhiteTo" missing function displays an error when the Shadows.hlsl shader is included in a Shader file
Resolution Note (fix version 2020.2):
Graphics: Fix ScriptableCamera appearing in the AddComponent's Inspector button (by removal of the ScriptableCamera)