/// <inheritdoc /> public override Rect Draw(Rect rect, object currentValue, Action <object> changeValueCallback, GUIContent label) { EditorGUI.BeginDisabledGroup(EditorConfigurator.Instance.AllowedMenuItemsSettings.GetBehaviorMenuOptions().Any() == false); if (EditorDrawingHelper.DrawAddButton(ref rect, "Add Behavior")) { IList <TestableEditorElements.MenuOption> options = ConvertFromConfigurationOptionsToGenericMenuOptions(EditorConfigurator.Instance.BehaviorsMenuContent.ToList(), currentValue, changeValueCallback); TestableEditorElements.DisplayContextMenu(options); } EditorGUI.EndDisabledGroup(); if (EditorDrawingHelper.DrawHelpButton(ref rect)) { Application.OpenURL("https://developers.innoactive.de/documentation/creator/latest/articles/innoactive-creator/default-behaviors.html"); } if (EditorConfigurator.Instance.AllowedMenuItemsSettings.GetBehaviorMenuOptions().Any() == false) { rect.y += rect.height + EditorDrawingHelper.VerticalSpacing; rect.width -= EditorDrawingHelper.IndentationWidth; EditorGUI.HelpBox(rect, "Your project does not contain any Behaviors. Either create one or import an Innoactive Creator Component.", MessageType.Error); rect.height += rect.height + EditorDrawingHelper.VerticalSpacing; } return(rect); }