Unity Issue Tracker - this.ValueToString(this.rawValue) is called every time when setting FloatField.value to the same value
Fixed
UUM-8156
this.ValueToString(this.rawValue) is called every time when setting FloatField.value to the same value
Unity: UI Toolkit Controls
Fixed
2023.1.X
2022.2.X
2021.3.X
Won't Fix
2022.1.X
2020.3.X
2019.4.X
Port canceled as we transition to 2022.2 (2022.2.X port is active or already resolved)
2020.3.X ports are not supported anymore (package workflow change would be required)
Version 2019.4.X is not supported in UI Toolkit (we do not plan on more package releases at this point).
Reproduction steps:
1. Open the attached "1415261.zip" project
2. Open the Profiler Window and set it to record in Editor mode
3. Open the "MyWindow" Window
4. Stop recording in the Profiler
5. Search for and observe the Profiler Marker named "ZZZZZ" in the Profiler Window
Expected result: There are no "GC Alloc" spikes
Actual result: There is a ~27MB "GC Alloc" spike