Пример #1
0
        public void DrawBefore(CyberAttribute cyberAttribute)
        {
            LabelFieldAttribute attribute = cyberAttribute as LabelFieldAttribute;

            TheEditor.PrepareToRefuseGui(this.GetType());



            var rect = EditorGUILayout.GetControlRect();

            if (attribute.IgnoreIndentLv == false)
            {
                rect = EditorGUI.IndentedRect(rect);
            }



            GUI.Label(rect, attribute.Label, attribute.ApplyStyle(new GUIStyle(EditorStyles.label)));
            TheEditor.RefuseGui(this.GetType());
        }