Search Issue Tracker
Fixed in 1.0.0
Votes
0
Found in [Package]
1.0.0-preview.14
Issue ID
1336850
Regression
No
[UI Toolkit] DropdownField choices property cannot be accessed when referenced in script
How to reproduce:
1. Create a new project using the 3D template
2. Import the UI Toolkit (com.unity.ui) package (if not in Unity 2021.2 stream or above)
3. Create a new Script
4. In the script, create a DropdownField object
5. Try referencing the object's "choices" property
Expected result: "choices" property is available and editable
Actual result: "choices" property cannot be accessed
Reproducible with: 1.0.0-preview.14 (2020.3.10f1, 2021.1.9f1), 2021.2.0a17 (1.0.0)
Not reproducible with: 2021.2.0a18, 2021.2.0a19 (1.0.0)
Couldn't test with: 2018.4.35f1, 2019.4.28f1 (UI Toolkit is not available)
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
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
- ShadowCaster2D breaks on certain Rotation positions when Casting Source is set to PolygonCollider2D
Resolution Note (fix version 1.0.0):
Fixed in Unity 2021.2.0a18 and above