dbrizov / NaughtyAttributes

Attribute Extensions for Unity
MIT License
4.53k stars 464 forks source link

[Bug][Button] show twice in inherit ScriptableObject #292

Open wojiuxuihuan opened 2 years ago

wojiuxuihuan commented 2 years ago
public class Parent : ScriptableObject
{
    [Button]
    public virtual void Button()
    {
        Debug.Log("Parent");
    }
}

[CreateAssetMenu(menuName = "Test/Son")]
[System.Serializable]
public class Son : Parent
{
    public override void Button()
    {
        Debug.Log("Son");
    }
}

As shown below, these two button both invoke the same child method: image