Steps to reproduce:
- Create a new Unity project using the Universal 3D template
- Create a new Trail GameObject (GameObject > Effects > Trail)
- Select the newly created Trail GameObject in the Hierarchy window
- Change the X position to a very large number in the Inspector window
- Observe the Console window
Actual results: “Assertion failed on expression: 'IsFinite(distanceForSort)’” is spammed in the Console window
Expected results: "Invalid worldAABB. Object is too large or too far away from the origin." error is thrown which is descriptive and tells the user the exact issue
Reproducible with versions: 2022.3.67f1, 6000.0.58f1, 6000.2.6f1, 6000.3.0b3, 6000.4.0a1
Tested on (OS): Ubuntu 24.04, macOS Silicon Sequoia 15.6.1
Notes:
- On any other GameObject, the "Invalid worldAABB. Object is too large or too far away from the origin." error is thrown
- The errors are being thrown even if the position is changed back from the very large number to a small number