Search Issue Tracker
By Design
Votes
0
Found in
5.1.0f3
Issue ID
704392
Regression
No
GetComponent() allocates memory on each call
How to reproduce:
1. Open attached project
2. Open scene scene.unity
3. Open the Profiler window
4. Enable Deep Profiling
5. Play the scene
- Notice how BehaviourUpdate/TestCode.Update()/Component.GetComponent()/Component.GetComponentFastPath() allocates GC for each call, even though nothing changed in between calls
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Quality Hackweek] Activated Terrain Inspector is active only until the terrain GameObject is deselected when two or more Inspectors are open
- Physics Used Memory keeps growing when GameObject colliders are enabled and disabled
- Errors are thrown and Inspector's UI element is not drawing when a GameObject with script component using a List<T> attached is selected
- ConfigurableJoint's parameters are not saved in the Prefab after Runtime Prefab baking
- Popup windows spawn on the incorrect monitor when the Editor is placed near the boundary of scaled monitor next to a monitor with different scaling
Add comment