roslynator icon indicating copy to clipboard operation
roslynator copied to clipboard

RCS1213: Add OnRectTransformDimensionsChange to list of Unity methods

Open NoTuxNoBux opened this issue 11 months ago • 0 comments

Hi

I'm using RCS1213 with roslynator_suppress_unity_script_methods = true and it works nicely, but it looks like OnRectTransformDimensionsChange is not part of the list of methods that are detected as Unity methods and it will still report the method as unused if it's part of a MonoBehaviour:

public sealed class ScaleBoxColliderToUIElement : MonoBehaviour
{
    // RCS1213 reported here:
    private void OnRectTransformDimensionsChange()
    {
    }
}

This method still works/exists, but it doesn't appear to be (well) documented any more, which is probably why it was missed - it can still be seen here.

NoTuxNoBux avatar Dec 11 '24 08:12 NoTuxNoBux