Search Issue Tracker
Fixed in 3.1.0
Votes
0
Found in [Package]
2020.2.0a13
2020.2.0a14
Issue ID
1254293
Regression
No
[TerrainTools] NullReferenceException is thrown on adding any properties in the Image Filter Stack after resetting
After resetting the "Image Filter Stack", NullReferenceException is thrown on adding any properties, refer the attached video.
Steps to repro:
1. Create a new project
2. Windows > Package Manager > TerrainTools > Install
3. Project > right-click > Create > Image Filter Stack
4. Project > Image Filter Stack > Inspector > Reset
5. Project > Image Filter Stack > Add Any Property
Actual Result:
NullReferenceException is thrown on adding any properties in the Image Filter Stack after resetting
Expected Result:
No errors in the console and property added on the list
Reproducible in:
2020.2.0a14, 2020.2.0a13
Note: Reset functionality for Image Filter Stack is introduced in 2020.2.0a13
Environment:
Windows 10 & macOS 10.14
Stack Trace:
NullReferenceException: SerializedObject of SerializedProperty has been Disposed.
UnityEditor.SerializedProperty.get_arraySize () (at <d152ba57ae03448bbfbedbdc3373ab44>:0)
UnityEditor.Experimental.TerrainAPI.FilterStackView.InsertFilter (System.Int32 index, System.Type type, System.Boolean recordFullObject) (at library/packagecache/com.unity.terrain-tools@3.0.1-preview/editor/terraintools/filterstack/filterstackview.cs:229)
UnityEditor.Experimental.TerrainAPI.FilterStackView.AddFilter (System.Type type) (at library/packagecache/com.unity.terrain-tools@3.0.1-preview/editor/terraintools/filterstack/filterstackview.cs:204)
UnityEditor.Experimental.TerrainAPI.FilterStackView+<>c__DisplayClass15_0.<Init>b__0 () (at library/packagecache/com.unity.terrain-tools@3.0.1-preview/editor/terraintools/filterstack/filterstackview.cs:143)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, System.Int32 selected) (at <d152ba57ae03448bbfbedbdc3373ab44>:0)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] The Player screen turns black when playing a video under certain conditions
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
- Last segment of a Sprite Shape Spline is affected by other segments' Sprite Variant change when no edge Sprite is selected
Add comment