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
- Non-multisampled texture binding errors are logged when running the DepthBlit URP scene with MSAA enabled on Vulkan
- The Editor does not recognize code errors in generic classes when using C# Source Generator to generate serialization code
- NullReferenceException is logged when undoing Deletion of a Visual Query Block of a Search Expression
- “Unsupported type MinMaxCurve” error and “Could not register property modification for animation binding…” warnings are thrown after moving playhead when Particle System Property is added to Animation window
- Nested LocalizedStrings can not query local variables
Add comment