Search Issue Tracker
Fixed in 2018.3.X
Votes
0
Found in
2018.3
Issue ID
1092209
Regression
No
[Terrain] Lingering ref to Terrain Layer after deleting it from disk
Reference to TerrainLayer exists after deleting the Terrain Layer from project/disk
Repro:
1. Create/open project in 2018.3.0b6
2. Create/open scene
3. Create/select Terrain
4. Select the Paint Texture Tool
5. Add a new Terrain Layer
6. Paint on Terrain using that Terrain Layer
7. Select Terrain Layer in the Project window
8. Delete it
9. Select Terrain again
10. Select Raise/Lower Height tool and paint with that on the Terrain
11. "Fixed" upon saving, though the null ref terrain layer still shows up in the Inspector GUI for Terrain
Errors in Console:
1. "NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Experimental.TerrainAPI.PaintTextureTool.DrawFoldoutEditor (UnityEditor.Editor editor, System.Int32 controlId, System.Boolean& visible) (at C:/buildslave/unity/build/Modules/TerrainEditor/PaintTools/PaintTextureTool.cs:73)
UnityEditor.Experimental.TerrainAPI.PaintTextureTool.OnInspectorGUI (UnityEngine.Terrain terrain, UnityEditor.Experimental.TerrainAPI.IOnInspectorGUI editContext) (at C:/buildslave/unity/build/Modules/TerrainEditor/PaintTools/PaintTextureTool.cs:150)
UnityEditor.TerrainInspector.ShowPaint () (at C:/buildslave/unity/build/Modules/TerrainEditor/TerrainInspector.cs:1458)
UnityEditor.TerrainInspector.OnInspectorGUI () (at C:/buildslave/unity/build/Modules/TerrainEditor/TerrainInspector.cs:1813)
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:1598)
UnityEditor.PopupCallbackInfo:SetEnumValueDelegate(Object, String[], Int32)"
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
- Polygons are created on the opposite side of the Sprite when the Sprite boundaries are above the edge of the Texture
- Render Graph Viewer Resource list becomes shrunk after using a filter that yields no results
- [Android] [Vulkan] "VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT" not added on some Android devices in "com.unity3d.player.UnityPlayerActivity/2D Colour Attachement"
- ResolveUsePasses now extracts passes from all subshaders including fallbacks, in contrast to documented behaviour
- [UIBuilder] Changes aren't detected on types implementing IList
theHost
Jun 21, 2019 12:26
Hello, this is still an issue in 2019.1.6f1