Reproduction steps:
1. Open the attached “GeneratedMeshIssue.zip“ project
2. Open “Terrain” scene
3. Open WorldEditor window in the Tools tab
4. Select the “TerrainGene” GameObject
5. Set 0 at X and Y in the WorldEditor window and press the GenerateChunk button
6. Select the generated “Chunk_0_0” GameObject
7. In the Scene window, hold the control key, left-click on any hexadecimal tile, and observe the Scene window
8. Create a prefab from “Chunk_0_0” GameObject
9. In the Scene window, hold the control key, left-click on any hexadecimal tile, and observe the Scene window
Expected result: Editor doesn’t freeze and the tile is created
Actual result: Editor freezes for a few moments and then the tile is created
Reproducible with: 2021.3.18f1, 2022.2.6f1, 2023.1.0b3, 2023.2.0a1
Could not test with: 2020.3.45f1 (Due to “Argument 1: cannot convert from 'string' to 'char'“ error in the console)
Reproduced on: macOS Monterey 12.6 (Intel)