NaughtyAttributes
NaughtyAttributes copied to clipboard
[Bug][Button] show twice in inherit ScriptableObject
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: