Search Issue Tracker
Fixed
Fixed in Built-in
Votes
1
Found in [Package]
Built-in
Issue ID
1374412
Regression
No
[UI Toolkit] IndexOutOfRangeException is thrown when calling Focus() on a Text field during the Object Initialization
Reproduction steps:
1. Open Attached Project "Repro"
2. Add UI Document Component to GameObject
3. Create New Panel Settings (Right-click in project view -> Create -> UI Toolkit -> Panel Settings Asset)
4. Set Panel Settings to "New Panel Settings"
5. Set Source Asset to "LoginDialogVisualTree"
6. Enter Play Mode
Expected result: Unity enters GameView with username TextField Focused
Actual result: IndexOutOfRangeException is thrown
Reproducible with: 1.0.0-preview.16, 1.0.0-preview.17, 1.0.0-preview.18 (2020.3.22f1, 2021.1.28f1), Built-in (2021.2.0f1, 2022.1.0a13)
Could not test with: 2019.4.32f1 (no UI Toolkit package)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (fix version Built-in):
Fixed in: 2021.2.7f1