resharper-unity
resharper-unity copied to clipboard
Refactor GetComponent<> calls
There should be a suggestion to refactor GetComponent<ComponentType>() calls into a member variable of the ComponentType + initialization using GetComponent<ComponentType>() in the Awake() method. Don't show the suggestion if the call is in the Awake() method.
We are showing that quick fix for GetComponent in performance critical context, but I think we should show it everywhere for GetComponent
How's it going?
No changes right now. We'll look at this as part of Rider 2021.2