コード例 #1
0
        /// <inheritdoc />
        protected override bool ValidateMember(MemberInfo member)
        {
            bool valid = base.ValidateMember(member);

            valid &= UnityMemberDrawerHelper.ValidateMethod(filter, (MethodInfo)member);

            return(valid);
        }
コード例 #2
0
        /// <inheritdoc />
        protected override bool ValidateMember(MemberInfo member)
        {
            bool valid = base.ValidateMember(member);

            FieldInfo    field    = member as FieldInfo;
            PropertyInfo property = member as PropertyInfo;
            MethodInfo   method   = member as MethodInfo;

            if (field != null)             // Member is a field
            {
                valid &= UnityMemberDrawerHelper.ValidateField(filter, field);
            }
            else if (property != null)             // Member is a property
            {
                valid &= UnityMemberDrawerHelper.ValidateProperty(filter, property);
            }
            else if (method != null)             // Member is a method
            {
                valid &= UnityMemberDrawerHelper.ValidateMethod(filter, method);
            }

            return(valid);
        }