Search Issue Tracker
Fixed in 2017.1.X
Votes
0
Found in
2017.1.0b3
Issue ID
907774
Regression
No
[.NET4.6] Texture cannot be painted on terrain
Steps to repro:
1. Open attached project and 't1' scene;
2. Select Terrain gameobject in the Hierarchy;
3. In Terrain Inspector go to 'Paint Texture' tab;
4. In the pallette select second white texture;
5. Try to paint white texture on terrain with using one of terrain brushes.
Expected result:
Texture is painted on terrain.
Actual result:
- Texture is not painted;
- Error:
Exception: Float array size wrong (layers should be 2)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:238)
UnityEditor.DockArea.OldOnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:407)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/IMGUIContainer.cs:103)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleEvent (UnityEngine.Event evt, UnityEngine.Experimental.UIElements.VisualElement finalTarget) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/IMGUIContainer.cs:140)
UnityEngine.Experimental.UIElements.EventDispatcher.DispatchEvent (UnityEngine.Event e, UnityEngine.Experimental.UIElements.IVisualElementPanel panel) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/EventDispatcher.cs:226)
UnityEngine.Experimental.UIElements.UIElementsUtility.DoDispatch (UnityEngine.Experimental.UIElements.IVisualElementPanel panel) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/UIElementsUtility.cs:214)
UnityEngine.Experimental.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/UIElementsUtility.cs:67)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUIUtility.cs:186)
is thrown. See attached video.
Notes:
- Reproducible in 2017.1.0b3, 2017.1.0b2;
- Reproducible only for new .NET 4.6 / not reprodicuble under .NET 3.5;
- Reproducible on Windows 10 and OSX 10.12.3;
- The bug doesn't affect painting of grass and detail meshes.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment