Question by
rhksdn2314 · Feb 22 at 10:46 AM ·
getcomponentgc
GetComponent, TryGetComponent and NullErrorWrapper GC Question
HI, when I used Getcomponent, profiler show
After this, I figured out that GetComponent make GC (EditorOnly), so I changed it to TryGetComponent and problem solved.
However, why EditorOnly[GetComponentNullErrorWrapper] showed 0B GC? If the problem was caused by GetComponent with "error object allocated" and "EditorOnly", profiler should have shown GC at EditorOnly, not just GetcomponentFastPath Alloc or else.
I wonder why this situation happend. Thank you.
q1.png
(15.6 kB)
Comment