Search Issue Tracker
By Design
Votes
0
Found in
2018.3.0b3
2018.3.0b5
Issue ID
1087972
Regression
Yes
API changes caused regression in WindowHelper+R_DockArea.AddTab (UnityEditor.EditorWindow pane
I'm testing one of the top grossing assets on the A$: Amplify Shader.
Some chages introduced in the UnityEditor.EditorWindow causes the package to throw a Null Reference Exception now:
NullReferenceException: Object reference not set to an instance of an object
WindowHelper+R_DockArea.AddTab (UnityEditor.EditorWindow pane) (at Assets/AmplifyShaderEditor/Plugins/Editor/Utils/WindowHelper.cs:62)
WindowHelper.AddTab (UnityEditor.EditorWindow existingWindow, UnityEditor.EditorWindow newWindow) (at Assets/AmplifyShaderEditor/Plugins/Editor/Utils/WindowHelper.cs:149)
AmplifyShaderEditor.AmplifyShaderEditorWindow.ConvertShaderToASE (UnityEngine.Shader shader) (at Assets/AmplifyShaderEditor/Plugins/Editor/Menu/AmplifyShaderEditorWindow.cs:379)
UnityEditor.CustomShaderInspector.OnInspectorGUI () (at Assets/AmplifyShaderEditor/Plugins/Editor/Utils/CustomShaderInspector.cs:233)
UnityEditor.InspectorWindow.DoOnInspectorGUI (System.Boolean rebuildOptimizedGUIBlock, UnityEditor.Editor editor, System.Boolean wasVisible, UnityEngine.Rect& contentRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1599)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
This prevents a button from opening the script in the graph editor.
Repro steps:
-open this project
-go to the Examples folder- you will see a few examples there.
-double-click on the shader object - that should open the graph editor
-in the inspector, while selecting the shader object, you will also find a button "open in Shader Editor" - that button also throws the same exception.
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
- Crash on AnnotationManager::CanHideLODLabels when opening the Gizmos dropdown menu
- "Default Play Mode" button does not appear in the Editor toolbar after installing Multiplayer Play Mode package
- Icon of the button that opens Player 2 window is barely visible in the Active Scenario window when using Light Editor Theme
- It is possible to disable the Low Resolution Aspect Ratios setting on non-Retina displays when the display's scale is set to a value higher than 100%
- The “Default” overlay preset is selected and not marked dirty but the overlay itself is still unsaved when deleting a different preset
Resolution Note (2018.3.X):
The asset uses undocumented internal APIs via c# reflection hack - see line 61: https://github.com/Daydam/Seminario-2.0/blob/master/Assets/Additional%20packages/AmplifyShaderEditor/Plugins/Editor/Utils/WindowHelper.cs
Unity does not guarantee backward compatibility for such cases. Internal APIs are subject to change without notice and developers should be prepared to update their assets to maintain compatibility with future Unity versions.
As such, I've contacted the A$ developer and he agreed to push an update with the fix instead soon.