Search Issue Tracker

By Design

Votes

1

Found in

2020.3.36f1

2021.3.5f1

2022.1.7f1

2022.2.0a18

2023.1.0a2

Issue ID

UUM-11449

Regression

No

The header is shown multiple times when variables are separated by a comma

-

Reproduction steps:

  1. Open the attached project (“header.zip“)
  2. Select scene “SampleScene”
  3. Select GameObject called “Main Camera”
  4. In the inspector select “New Behaviour Script” component
  5. Observe displayed headers

Expected result: Only one header is displayed
Actual result: Two same headers are displayed

Reproducible with: 2020.3.36f1, 2021.3.5f1 ,2022.1.7f1 ,2022.2.0a18, 2023.1.0a2

Reproducible on: Windows 11

  1. Resolution Note:

    When an attribute is used over multiple variables declared at the same time, each variable is assigned this attribute (this is basically C# normal behavior). When drawing the header we cannot know the variables were define at the same time.

Add comment

Log in to post comment