Пример #1
0
        public override object OnGUI(GUIContent content, object instance)
        {
            var isNull = instance == null || instance.Equals(null) || ((instance is string) && string.IsNullOrEmpty((string)instance));

            instance = MoveNextDrawer();
            if (isNull)
            {
                EditorUtils.MarkLastFieldError("An instance is required.");
            }
            return(instance);
        }