How to reproduce:
- Open the attached “IN-149591” project
- Open the “Game” Scene
- In the Hierarchy tab, navigate to “--- UI ---” > “Worldspace stuff” > “Image”
- Right-click the “Image” GameObject and select “UI (Canvas)” > “Text - TextMeshPro”
- Observe the results in the Console and in the Inspector of “Text - TextMeshPro” object
Actual result: "StackOverflowException: The requested operation caused a stack overflow." is thrown continuously in the Console and the Inspector of the created “Text - TextMeshPro” GameObject is not rendered
Expected result: The “Text - TextMeshPro” GameObject is created without errors and its Inspector is displayed normally
Reproducible with: 6000.0.1f1, 6000.0.80f1, 6000.3.21f1, 6000.5.7f1, 6000.6.0b6, 6000.7.0a4
Reproducible on: Windows 11 Enterprise (25H2)
Not reproducible on: No other environments tested
Notes:
- In 6000.0.80f1 the “UI (Canvas)” is called “UI”
- The bug is inconsistent - the “Text - TextMeshPro” GameObject is sometimes created without any errors
- Not reproducible in a fresh project