Search Issue Tracker
By Design
Votes
0
Found in
2017.4.0f1
2018.3.0a1
2018.4.0f1
2019.1.0a1
2019.1.11f1
2019.2.0a1
2019.3.0a1
2020.1.0a1
Issue ID
1176480
Regression
No
Putting the [Header()] tag above a line with multiple variables it shows the Header name above each entry
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("Camera scaling")]
public Transform center, unscaledCamera, scaledcamera;
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 shows the Header name above each entry
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (2020.1.X):
This is how C# attributes are assigned to members when define in the same statement. If you do not want this, split the declaration on multiple lines.