错误CS0121:以下方法或属性之间的调用不明确:'ReorderableAttribute

时间:2019-07-21 04:28:30

标签: c# unity3d

升级项目后出现此错误 错误CS0121:

The call is ambiguous between the following methods or properties: 

'ReorderableAttribute.ReorderableAttribute(bool, bool, bool, string, string)' and

'ReorderableAttribute.ReorderableAttribute(bool, bool, bool, string, string, string)'

这是完整的代码

    public ReorderableAttribute()
        : this(null)
    {
    }

    public ReorderableAttribute(string elementNameProperty)
        : this(add: true, remove: true, draggable: true, elementNameProperty)
    {
    }

    public ReorderableAttribute(string elementNameProperty, string elementIconPath)
        : this(add: true, remove: true, draggable: true, elementNameProperty, null, elementIconPath)
    {
    }

0 个答案:

没有答案
相关问题