Skip to content

Commit

Permalink
how to setup UGS tutorial added
Browse files Browse the repository at this point in the history
  • Loading branch information
fernando-cortez committed Jan 14, 2025
1 parent 7e8de47 commit 71583f4
Show file tree
Hide file tree
Showing 20 changed files with 220 additions and 33 deletions.
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

0 comments on commit 71583f4

Please sign in to comment.