Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2020.3
2021.2
2021.2.3f1
2022.1
Issue ID
1384727
Regression
No
Mesh disappears when DrawMesh is called from the EditorWindow
Reproduction steps:
1. Open the '1384727_sample' project
2. Go to the Menu Item 'Example -> ExampleWindow'
3. Move the cursor around the Editor
Expected result: the Mesh is always visible in the Scene View while the EditorWindow is active
Actual result: the Mesh is displayed just when the cursor is in random areas of the Editor
Reproducible with: 2019.4.32f1, 2020.3.24f1, 2021.2.6f1, 2022.1.0b1
Could not test with: 2019.4.32f1 (the Mesh doesn't appear at all)
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
- Assigned font's bold/font-weight styles render using Default Font's assets when Default Font has corresponding style assets defined in TMP Settings
- "Modifying the parent of a VisualElement while it’s already being modified is not allowed" error is thrown when entering text and pressing tab in the Search window
- Mesh colliders are not updating their positions of bounds correctly
- Images are missing from the "Open the sprite editor" documentation for 6.0, 6.1 and 6.2
- The previous element in the array is modified when assigning an Asset to a new element of AssetReferenceT
Resolution Note:
The Sceneview only repaints when necessary, e.g. something has changed. In this case the Editor window decides to draw a cube but does not tell the SceneView to repaint. Calling SceneView.RepaintAll() after DrawMesh results in the expected behavior for the SceneView. Do note that a set up like this is not advisable. It may result in unnecessary repainting of the SceneView which can get costly.