Search Issue Tracker

Fixed in 5.5.0

Votes

0

Found in

5.3.4f1

Issue ID

780377

Regression

No

[GCAllocation] MethodInfo.Invoke without parameters allocates 40B per call

Scripting

-

Steps to reproduce:
1. Open attached project
2. Open the "repro" scene
3. Press Play
4. Open the profiler window
5. Notice 40B in the memory section the 'GC allocation per frame'
6. Click the unique GameObject in the scene
7. In the inspector click the 'With Parameter' check box
8. Notice 0B in the memory section the 'GC allocation per frame'

Expected: GC allocation for MethodInfo.Invoke with and without parameters is the same

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.