Search Issue Tracker
By Design
Votes
0
Found in
5.5.0f3
Issue ID
888920
Regression
No
GetComponentsInChildren always gets components from inactive objects
Steps to reproduce:
1. Open the attached project(GetComponentsInChildren.zip)
2. Open the Main scene
3. Play the scene
4. Observe the Console Window, GetComponentsInChildren has gotten component from inactive object
Expected result: GetComponentsInChildren should not return the inactive object if passing the *inactiveObjects* parameter is false
Actual result: GetComponentsInChildren has returned the inactive object even if passing the *inactiveObjects* parameter is false
Reproduced with: 5.3.8f1, 5.4.5p4, 5.5.4p1, 5.6.2p1, 2017.1.0f1, 2017.2.0b1
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
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
Peter77
Oct 21, 2017 15:45
Related forum thread:
https://forum.unity.com/threads/getcomponentsinchildren-false-returns-inactive-objects.501177/