Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RCS1213: Add OnRectTransformDimensionsChange to list of Unity methods #1595

Open
NoTuxNoBux opened this issue Dec 11, 2024 · 0 comments
Open

Comments

@NoTuxNoBux
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants