Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: how to setup UGS In-Editor Tutorial added [MTT-8923] #898

Merged
merged 6 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from 3 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
8 changes: 8 additions & 0 deletions Assets/Editor/Tutorials/Homepage.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Assets/Editor/Tutorials/Homepage/0_TableOfContents.asset
Git LFS file not shown
3 changes: 3 additions & 0 deletions Assets/Editor/Tutorials/Homepage/1_ConfigureUGS.asset
Git LFS file not shown
8 changes: 8 additions & 0 deletions Assets/Editor/Tutorials/Homepage/1_ConfigureUGS.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Editor/Tutorials/Images.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Assets/Editor/Tutorials/Images/Feature_Image_008.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
127 changes: 127 additions & 0 deletions Assets/Editor/Tutorials/Images/Feature_Image_008.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions Assets/Editor/Tutorials/TableOfContents.asset

This file was deleted.

4 changes: 2 additions & 2 deletions Assets/Editor/Tutorials/Tutorial Welcome Page.asset
Git LFS file not shown
8 changes: 8 additions & 0 deletions Assets/Editor/Tutorials/Tutorial0_SetupUGS.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Git LFS file not shown

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Git LFS file not shown

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Git LFS file not shown

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Git LFS file not shown

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 6 additions & 28 deletions Assets/Editor/Tutorials/TutorialCallbacks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Unity.Netcode.Samples.BossRoom
{

/// <summary>
/// Implement your Tutorial callbacks here.
/// </summary>
Expand Down Expand Up @@ -39,36 +38,15 @@ public void StartTutorial(Tutorial tutorial)
{
TutorialWindow.StartTutorial(tutorial);
}

public void FocusGameView()
{
/*
* note: this solution is a bit weak, but it's the best we can do without accessing internal APIs.
* we'll need to check that it works for Unity 6 as well
*/
EditorApplication.ExecuteMenuItem("Window/General/Game");
}

public void FocusSceneView()
{
EditorApplication.ExecuteMenuItem("Window/General/Scene");
}

public bool IsRunningAsHost()
{
return NetworkManager.Singleton && NetworkManager.Singleton.IsHost;
}

public bool IsRunningAsServerOnly()

public bool IsConnectedToUgs()
{
return NetworkManager.Singleton && NetworkManager.Singleton.IsServer
&& !NetworkManager.Singleton.IsClient;
return CloudProjectSettings.projectBound;
}

public bool IsRunningAsClientOnly()
public void ShowServicesSettings()
{
return NetworkManager.Singleton && !NetworkManager.Singleton.IsServer
&& NetworkManager.Singleton.IsClient;
SettingsService.OpenProjectSettings("Project/Services");
}

public void OpenURL(string url)
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Additional documentation and release notes are available at [Multiplayer Documen
* Added a welcome dialog to guide users on their first time experience (#888)
* Added a Table of Contents with helpful resources, that can be accessed from the `Tutorials > Show Tutorials` menu
* Added the Multiplayer Play Mode package v1.3.1 to the project (#890)
* An In-Editor Tutorial walking through the process of associating your Unity project with a Unity Cloud ID has been added (#898)

### Changed
* Upgraded editor version to 6000.0.25f1 and upgraded Boss Room to Netcode for GameObjects v2.0.0 (#890)
Expand Down
Loading