NaughtyAttributes icon indicating copy to clipboard operation
NaughtyAttributes copied to clipboard

[Bug][Button] show twice in inherit ScriptableObject

Open wojiuxuihuan opened this issue 3 years ago • 0 comments

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

wojiuxuihuan avatar Dec 27 '21 14:12 wojiuxuihuan