Steps to reproduce:
- Create a new Unity project using a 3D Universal Template
- Make sure the Scene view is active
- Right-click in the Hierarchy
- Select UI > Button - TextMeshPro (or any other UI GameObject)
- In the Inspector, observe the "Rect Transform" Component of the newly created GameObject
Actual results: The Pos X, Pos Y are at random values, anywhere in the Canvas GameObject
Expected results: The Pos X, Pos Y and Pos Z are at 0,0,0
Reproducible with versions: 2023.1.0a1, 6000.0.64f1, 6000.2.15f1, 6000.3.1f1, 6000.4.0a5, 6000.5.0a3
Tested on (OS): Windows 11, macOS 26.1 (M1 Pro)
Notes:
- If the first GameObject is created while only the Game view is active, the issue does not occur and GameObjects are located at 0,0,0. However, if they get created while Scene view is active, they end up created at random parts of the Canvas. After that, the issue also starts reproducing with Game view
- The created position changes based on the Camera position in the Scene view. Rotating it or moving it to a different position provides different results, sometimes it correctly places it as 0,0,0