Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

[UTY-2631] Add new menu item to open inspector v2 #1407

Merged
merged 4 commits into from
Jun 25, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions workers/unity/Packages/io.improbable.gdk.tools/LocalLaunch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace Improbable.Gdk.Tools
public static class LocalLaunch
{
private const string InspectorUrl = "http://localhost:21000/inspector";
private const string InspectorV2Url = "http://localhost:21000/inspector-v2";

private static readonly string DefaultLogFileName
= Path.GetFullPath(Path.Combine(Common.SpatialProjectRootDir, "logs", "*unityclient.log"));
Expand Down Expand Up @@ -61,6 +62,12 @@ private static void OpenInspector()
Application.OpenURL(InspectorUrl);
}

[MenuItem("SpatialOS/Open inspector V2 (Beta)", false, MenuPriorities.OpenInspectorV2)]
private static void OpenInspectorV2()
{
Application.OpenURL(InspectorV2Url);
}

public static void BuildConfig()
{
using (new ShowProgressBarScope("Building worker configs..."))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ internal static class MenuPriorities
internal const int LocalLaunch = 71;
internal const int LaunchStandaloneClient = 72;
internal const int OpenInspector = 74;
internal const int PortForwarding = 75;
internal const int OpenInspectorV2 = 75;
internal const int PortForwarding = 76;

internal const int GdkToolsConfiguration = 201;
internal const int GenerateDevAuthToken = 202;
Expand Down