Search Issue Tracker

Active

Votes

1

Found in

2019.4

2019.4.26f1c1

2020.3

2021.1

2021.2

2022.1

Issue ID

1367874

Regression

No

GameObject.GetComponents returns the wrong number of components in "Main Camera" GameObject

Customer QA Onboarding

-

Reproduction steps:
1. Open the user's attached "GetComponentTest.zip" project
2. Go to MyMenu > TestItem
3. Observe the output in the Console

Expected result: Console outputs the correct number of components (4)
Actual result: Console outputs the wrong number of components (3)

Reproducible with: 2019.4.30f1, 2020.3.19f1, 2021.1.23f1, 2021.2.0b13, 2022.1.0a10

Notes:
- If the issue does not reproduce, delete the Library folder from the project's directory and open the project again
- Console outputs the correct number of components after selecting the GameObject from which components are counted ("Main Camera")

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.