Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.0f1
2018.3.0a1
2018.4.0f1
2019.1.0a1
2019.1.10f1
2019.2.0a1
2019.3.0a1
2020.1.0a1
Issue ID
1176720
Regression
No
Headers are rendered in reverse order when using multiple [Header()] attribute on the same field
To reproduce:
1. Open Unity and create a New Project
2. Create a new script and attach it to any gameObject
3. Open the newly created script and paste these lines:
[Header("Smoothing. Set iterations to 0 to disable. ")]
[Header("Smooth Iterations (CPU loop)")]
[Range(0, 50)]
[SerializeField] private int SmoothIterations = 1;
4. Save the script and go back to Unity Editor
5. Select gameObject on which attached script is and inspect it on Inspector
6. Observe that the Script component renders the Headers in reverse order
Notes:
- This issue happens on both Windows and macOS
- Image for reference is attached in Comments section
Reproduced on Unity 2017.4.0f1, 2017.4.32f1, 2018.3.14f1, 2018.4.7f1, 2019.1.14f1, 2019.2.3f1, 2019.3.0b1 and 2020.1.0a1
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 (2020.1.X):
This is C# specific. Simply reorder your attributes to get what you want.