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 all commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Added

- Added `map<k,v>` support to the Worker Inspector window. [#1403](https://github.com/spatialos/gdk-for-unity/pull/1403)
- Added `Open inspector V2` menu item that opens the new inspector in the browser. [#1407](https://github.com/spatialos/gdk-for-unity/pull/1407)

### Fixed

Expand Down
4 changes: 2 additions & 2 deletions init.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ UpdateSpot spot-macos "$SdkPath/.spot/spot"
UpdatePackage worker_sdk c-static-arm-clang-ios "$SdkMobilePath/Plugins/Improbable/Core/iOS/arm"
UpdatePackage worker_sdk c-static-x86_64-clang-ios "$SdkMobilePath/Plugins/Improbable/Core/iOS/x86_64"

UpdatePackage worker_sdk c-dynamic-arm64v8a-clang_ndk16b-android "$SdkMobilePath/Plugins/Improbable/Core/Android/arm64"
UpdatePackage worker_sdk c-dynamic-armv7a-clang_ndk16b-android "$SdkMobilePath/Plugins/Improbable/Core/Android/armv7"
UpdatePackage worker_sdk c-dynamic-arm64v8a-clang_ndk21-android "$SdkMobilePath/Plugins/Improbable/Core/Android/arm64"
UpdatePackage worker_sdk c-dynamic-armv7a-clang_ndk21-android "$SdkMobilePath/Plugins/Improbable/Core/Android/armv7"

UpdatePackage worker_sdk csharp_cinterop_static "$SdkMobilePath/Plugins/Improbable/Sdk/iOS"
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