コード例 #1
0
        public override void OnLowerGUI()
        {
            var current = memberValue;

            if (!current.GenericEquals(previous))
            {
                previous = current;
                onChanged.SafeInvoke(rawTarget, current);
                setter.SafeInvoke(ref member.RawTarget, current);
            }
        }
コード例 #2
0
        public override void OnLowerGUI()
        {
            var current = memberValue;

            bool changed;

            if (member.CollectionCount != -1 && member.CollectionCount != _previousCollectionCount)
            {
                _previousCollectionCount = member.CollectionCount;
                changed = true;
            }
            else
            {
                changed = !current.GenericEquals(_previousValue);
            }

            if (changed)
            {
                _previousValue = current;
                _onChanged.SafeInvoke(rawTarget, current);
                _setter.SafeInvoke(ref member.RawTarget, current);
            }
        }