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
- Text Settings Inspector sections names have no padding
- UI elements shrinking, misaligned buttons, swapped icons, or incorrect styles when rapidly cycling through Scenes in the Player
- Text field does not disappear if Ctrl+Z is pressed while editing text
- CullingResults.GetShadowCasterBounds Results Remain Unchanged Despite Restricting Affected Objects with Rendering Layers
- Water Surface renders rectangular shape when the Camera is relatively close to the surface
Add comment