Steps to reproduce:
- Create a new project using Universal 2D template
- In the Hierarchy, create a Sprite (e.g. 2D Object > Sprites > Triangle)
- Enter Play mode
- Open the Profiler window (Window > Analysis > Profiler)
- Scroll and select the 2D Profiler Module
- Select any frame and at the bottom select "Textures ( 1 texture, 1 sprites )"
- Close the Profiler window
- Reopen the Profiler window
- Observe the Console
Actual results: 3 "InvalidOperationException: Cannot modify VisualElement hierarchy during layout calculation" Errors and "NullReferenceException: Object reference not set to an instance of an object" Error are thrown
Expected results: No Errors
Reproducible with versions: 6000.5.0a7
Can’t test with versions: 6000.0.68f1, 6000.3.9f1, 6000.4.0b9 (2D Profiler module not available)
Tested on (OS): macOS 26.2