Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
0
Found in
2018.3
2018.4
2019.1
2019.2
2019.3
2020.1
2020.2
2020.2.0a9
Issue ID
1240829
Regression
No
[Terrain] InvalidCastException thrown on Creating New Brush with Cubmap Texture under Paint Terrain in the Inspector
When New Brush is created with Cubmap texture under Paint Terrain causes the Editor to throw InvalidCastException, refer attached video.
Steps to repro:
1. Create a new project.
2. Project > Create > Sprite > Square
3. Inspector > Texture Type > Default
4. Inspector > Texture Shape > Cube > Apply
5. Hierarchy > Create > 3D Object > Terrain
6. Inspector > Terrain > Paint Terrain
7. New Brush > Assign Square(Cubmap)
Actual Result:
InvalidCastException thrown when the New Brush is created with Cubmap Texture
Expected Result:
New Brush is created with Cubmap Texture gracefully
Note: New Brush is introduced in Unity 2018.3
Occurring in:
2020.2.0a9, 2020.1.0b7, 2019.3.10f1, 2019.2.13f1, 2019.1.11f1, 2018.4.14f1, 2018.3.0f2
Environment:
Windows 10 & macOS 10.14
Stack trace:
InvalidCastException: Specified cast is not valid.
UnityEditor.BrushList.<CreateBrush>b__21_0 (UnityEngine.Object selection) (at <5951c2421c324f47883bd5ba8a4bf507>:0)
UnityEditor.ObjectSelector.NotifySelectorClosed (System.Boolean exitGUI) (at <5951c2421c324f47883bd5ba8a4bf507>:0)
UnityEditor.ObjectSelector.OnDisable () (at <5951c2421c324f47883bd5ba8a4bf507>:0)
UnityEditor.ContainerWindow:InternalCloseWindow()
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment