Search Issue Tracker
Duplicate
Votes
0
Found in
2020.2.0a13
2020.2.1f1
2021.1
2021.2
Issue ID
1307651
Regression
Yes
An empty element appears when drag and dropping a Texture 2D to a field of a Sprite array in the Inspector
Reproduction steps:
1. Open the project "GameBase-client.zip"
2. Open SpreadSheet Scene
2. Click on the "TestObject" in the Hierarchy
3. Find a Texture 2D like "ImageSplash" in the Project
4. Drag the Texture to the Inspector -> Test (Script) -> Images (label)
Expected result: A Sprite gets added to the Sprite array in the Serialized field in the Inspector
Actual result: Empty element gets added to the Sprite array in the Serialized field in the Inspector
Reproducible with: 2020.2.0a13, 2020.2.3f1, 2021.1.0b5, 2021.2.0a3
Not reproducible with: 2019.4.19f1, 2020.2.0a12
Can't test with: 2018.4.31f1 (this feature not implemented)
Notes:
- Code to reveal the Sprite array in the Inspector: public Sprite[] images;
- if you add [SerializeField] tag, the issue reproduces
- if you add [NonReorderable] tag, the issue does not reproduce
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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
This is a duplicate of issue #1281986