Class SerenityHubLauncher
Launches a real Tools/Serenity/... tool exactly the way a direct menu click would
(UnityEditor.EditorApplication.ExecuteMenuItem(System.String)) and records it as a Hub-originated recent. This is the
single choke point every catalog card, search result, and Home recent/favorite click launches through, so
that "recents record only Hub-originated launches" (spec §8) holds without instrumenting individual tools.
Inherited Members
Namespace: Serenity.Localization.Installation.Settings.Editor.Hub.Services
Assembly: Serenity.UnityLocalization.Installation.Editor.dll
Syntax
public sealed class SerenityHubLauncher
Constructors
SerenityHubLauncher(SerenityHubRecents, Action<string>)
Declaration
public SerenityHubLauncher(SerenityHubRecents recents, Action<string> executeMenuItem = null)
Parameters
| Type | Name | Description |
|---|---|---|
| SerenityHubRecents | recents | |
| Action<string> | executeMenuItem |
Methods
Launch(string)
Executes the menu item at menuPath and records it as a recent.
Declaration
public void Launch(string menuPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | menuPath |