Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

If the field is in the base class, the inspector can not access it. Fix. #284

Merged

Conversation

Bezarius
Copy link
Contributor

@Bezarius Bezarius commented Feb 4, 2018

In this case:

    [Serializable]
    public class BaseClass
    {
        public ReactiveProperty<int> IntProperty;
    }

    [Serializable]
    public class SameClass : BaseClass
    {
        
    }

We can't acces to IntProperty in Inspector because:

type.GetField(path, BindingFlags.IgnoreCase | BindingFlags.GetField | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);

Doesn't return FieldInfo from base class.

@neuecc neuecc merged commit ad1754e into neuecc:master Jul 16, 2018
@neuecc
Copy link
Owner

neuecc commented Jul 16, 2018

thanks, great fix!

EarMaster pushed a commit to EarMaster/UniRx that referenced this pull request Jun 12, 2019
…stedFiled_Fix

If the field is in the base class, the inspector can not access it. Fix.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants