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
- Inaccurate collision detections when Rigidbody Collision Detection is set to "Continuous" or "Continuous Dynamic"
- Crash on Object::IncrementPersistentDirtyIndex when upgrading project version
- [iOS] Multiple Xcode project instances created before opens up when performing Build and Run for iOS Platform
- IL2CPP Player crash on memset in VCRUNTIME140D when selecting UI GameObject
- [BiRP] GetScriptableCullingParameters() uses the wrong projection matrix when rendering two forward+ passes in XR
Add comment