コード例 #1
0
        public void ApplyAutoValue()
        {
            if (!TryGetAttribute(out BaseAutoValueAttribute attribute))
            {
                return;
            }

            var drawer = MightyDrawersDatabase.GetDrawerForAttribute <IAutoValueDrawer>(attribute.GetType());

            var state = drawer.InitProperty(this, attribute);

            if (!state.isOk)
            {
                MightyGUIUtilities.DrawHelpBox(state.message);
            }
            else
            {
                MightyEditorUtilities.RegisterChange();
            }
        }