TylerTemp / SaintsField

A Unity Inspector extension tool focusing on script fields inspector enhancement
MIT License
148 stars 9 forks source link

[showif],[playashowif]... not work Class inheritance #8

Closed ZeroUltra closed 5 months ago

ZeroUltra commented 5 months ago

me again 2! Unity2022.3.16

public class TestBase : MonoBehaviour
{
    public bool haveInfo;
    [PlayaShowIf(nameof(haveInfo))]public string infoTextureName;

    public bool isInt;
    [ShowIf(nameof(isInt))] public int intA;
}
public class Test : TestBase
{
    [Space(20)]
    public bool isString;
    [ShowIf("isString")]
    public string strA;

    public bool haveInfo2;
    [PlayaShowIf(nameof(haveInfo2))] public string infoTextureName2;
}

image

TylerTemp commented 5 months ago

Hi, please upgrade to "2.2.0" to see if it's fixed.

image

image