Search Issue Tracker
Fixed
Fixed in 1.0.2
Votes
0
Found in [Package]
1.0.0
Issue ID
PROFB-318
Regression
No
Project Auditor - Some UnityEngine methods are reported as Major issue even when the non allocating version of this method is already in use
Taken from the Thread: https://discussions.unity.com/t/introducing-unity-project-auditor-a-tool-to-help-you-optimize-your-unity-projects/1597047/76
Some UnityEngine methods are reported as Major issue even when the non allocating version of this method is already in use (such as GetComponentsInChildren or CalculateFrustumPlanes)
Steps to reproduce:
\\
Actual results:
Expected results:
\\
Reproducible with versions:
Not reproducible with versions:
Can’t test with versions:
\\
Tested on (OS):
\\
Notes:
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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note (fix version 1.0.2):
Project Auditor warns about users calling functions which may allocate when you could call a non-allocating version (e.g. GetComponentsInChildren, where you can pass a List in or be returned an array).
In the case where multiple versions with the same name exists, Project Auditor warned anyhow and left it to the user to determine what should be done. With this change we can check to see if the function returns void, and if it does, automatically ignore this call because the List is being passed in.