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
- “FMOD failed to set the software format to the custom sample rate…” warnings are thrown as System Sample Rate value is being changed in Audio section of Project Settings window
- VFX Marquee selection does match the visual indicator
- “Invalid AABB aabb” errors are spammed when “Infinity” value is entered in Collider Component fields
- Editor Role does not sync with the MPPM Play Mode Scenario Role when entering Play mode
- Long asset names cause overlap with the “Find” function in search result tabs
Add comment