Skip to content

Commit

Permalink
Analytics initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelFortin committed Dec 3, 2020
1 parent 6d6ddbc commit a0a0e1d
Show file tree
Hide file tree
Showing 4 changed files with 367 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Debug/Editor/GenerateMenuItems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ static void AppendMenuItem(StringBuilder sb, MenuActionData data)
// *Important* The `instance.enabled` check is redundant for MenuItems, but not for ShortcutManager
// shortcuts, which atm only have the context of what EditorWindow is active.
sb.AppendLine( "\t\t\tif(instance != null && instance.enabled)");
sb.AppendLine( "\t\t\t{");
sb.AppendLine( "\t\t\t\tEditorUtility.ShowNotification(instance.DoAction().notification);");
sb.AppendLine( "\t\t\t\tProBuilderAnalytics.SendActionEvent(instance, ProBuilderAnalytics.TriggerType.MenuOrShortcut);");
sb.AppendLine( "\t\t\t}");
sb.AppendLine( "\t\t}");
}

Expand Down
Loading

0 comments on commit a0a0e1d

Please sign in to comment.