Skip to content

RCS1213: Add OnRectTransformDimensionsChange to list of Unity methods #1595

@NoTuxNoBux

Description

@NoTuxNoBux

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions