diff --git a/blog/2021-05-19-boss-room-0-2-0.md b/blog/2021-05-19-boss-room-0-2-0.md
new file mode 100644
index 000000000..cd1b91e8d
--- /dev/null
+++ b/blog/2021-05-19-boss-room-0-2-0.md
@@ -0,0 +1,23 @@
+---
+title: Boss Room 0.2.0 is live!
+author: Lori Krell
+author_title: Unity, Senior Tech Writer
+tags: [releases, bossroom]
+description: Welcome to the next release of the Unity Boss Room Small Scale Co-op Sample for version 0.2.0. This release includes numerous added features, updates, and fixes.
+hide_table_of_contents: false
+---
+
+Thank you for your continued support for MLAPI and the Boss Room Small Scale Co-op Sample! We have released a new v. 0.2.0 release of Boss Room, using 0.1.0 experimental MLAPI.
+
+In the past month, the team has delivered new features, optimizations, and numerous fixes and changes including the following highlights:
+
+* Updated and introduced various hero abilities, such as: Archer’s PowerShot which accounts for a duration that a key is pressed for or Rogue Dash that teleports the player to a target spot - to learn more about how to handle teleport-like abilities in a networked environment, please check out the DashAttackAction.cs - as well as Implementing a better cooldown solution and calculations.
+* Introduced static scene `NetworkObject`s, as well as implementing a `ScriptableObject` based event system to encapsulate events inside assets.
+* Increased the overall GPU performance of Boss Room by disabling GPU Skinning, enabling GPU instancing, turning off Cast Shadows for various prefabs, and more optimizations.
+* Updated the user interface in many places and refactored the Action Bar code to increase the extensibility without the need of having to manually modify the code in multiple areas.
+* Updated our `GameNetPortal` to properly handle Per-Connection state on client disconnect and Player connection if they experience a game-level connection failure - you can check out the `ApprovalCheck` function in our *ServerGameNetPortal.cs*.
+* Fixed various known issues from the previous release.
+
+Find all details in our [changelog](/releases/samples/samples-0-2-0) and download the release from [GitHub](https://github.com/Unity-Technologies/com.unity.multiplayer.samples.coop/releases/latest).
+
+Have questions? Chat with us in the [Multiplayer forums](https://forum.unity.com/forums/multiplayer.26) and [Discord](https://discord.gg/buMxnnPvTb) in the #dev-samples channel.
\ No newline at end of file
diff --git a/docs/learn/listenserverhostarchitecture.md b/docs/learn/listenserverhostarchitecture.md
index 2ca6c749e..64b52ae6e 100644
--- a/docs/learn/listenserverhostarchitecture.md
+++ b/docs/learn/listenserverhostarchitecture.md
@@ -1,6 +1,8 @@
---
-id: listenserverhostarchitecture
+id: listen-server-host-architecture
title: Create a game with a listen server / host architecture
+sidebar_label: Listen server and host architecture
+description: Learn more about creating a game with a listen server and host architecture.
---
## What is a listen server
diff --git a/docs/learn/multiplayergamearhitectureintroduction.md b/docs/learn/multiplayergamearhitectureintroduction.md
index 531e3a281..9a587a057 100644
--- a/docs/learn/multiplayergamearhitectureintroduction.md
+++ b/docs/learn/multiplayergamearhitectureintroduction.md
@@ -1,5 +1,5 @@
---
-id: multiplayergamearhitectureintroduction
+id: multiplayer-game-arhitecture
title: Introduction
sidebar_label: Introduction
---
diff --git a/docusaurus.config.js b/docusaurus.config.js
index ed1208b75..edca4a79b 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -205,6 +205,14 @@ module.exports = {
label: 'Unity Multiplayer Forum',
href: 'https://forum.unity.com/forums/multiplayer.26/',
},
+ {
+ label: 'MLAPI Forum',
+ href: 'https://forum.unity.com/forums/mlapi.661/',
+ },
+ {
+ label: 'Unity Transport Forum',
+ href: 'https://forum.unity.com/forums/unity-transport.664/',
+ },
]
},
],
@@ -481,18 +489,18 @@ module.exports = {
return `https://github.com/Unity-Technologies/com.unity.multiplayer.docs/edit/master/${versionDocsDirPath}/${docPath}`;
},
includeCurrentVersion: true,
- lastVersion: '0.9.0',
+ lastVersion: '0.8.0',
versions: {
//current: {
// label: 'Next',
// path: 'next',
//},
'0.9.0': {
- label: 'v. 0.9.0',
- path: '',
+ label: 'v. 0.9.0preview',
+ path: '0.9.0',
},
'0.8.0': {
- label: 'v. 0.8.0',
+ label: 'v. 0.8.0preview',
path: '0.8.0',
},
},
@@ -556,9 +564,20 @@ module.exports = {
{
id: 'GTM-5V25JL6', // GTM Container ID
}],
+ [
+ '@docusaurus/plugin-client-redirects',
+ {
+ redirects: [
+ {
+ to: '/docs/advanced-topics/messaging-system',
+ from: '/docs/advanced-topics/messaging-system/about-rpc',
+ },
+ ]
+ },
+ ],
'plugin-image-zoom',
'docusaurus-plugin-sass',
'@saucelabs/theme-github-codeblock',
'react-iframe'
- ],
+ ]
};
\ No newline at end of file
diff --git a/releases/index.md b/releases/index.md
index 04c57c0f6..a1e415b65 100644
--- a/releases/index.md
+++ b/releases/index.md
@@ -28,9 +28,10 @@ For Unity experimental releases:
See the following project releases for Boss Room.
-| Release | Status | Date | Supported Unity Versions |
+| Release | Status | Date | Supported MLAPI | Supported Unity |
| -- | -- | -- | -- |
-| [v0.1.0](samples/release-0-1-0.md) | Early Access | April 7, 2021 | 2020.3 and later |
+| [v0.2.0](samples/release-0-2-0.md) | Early Access | May 19, 2021 | [0.1.0](multiplayer/release-0-1-0.md) | v2020.3.8f1 LTS |
+| [v0.1.0](samples/release-0-1-0.md) | Early Access | April 7, 2021 | [0.1.0](multiplayer/release-0-1-0.md) | 2020.3.0f1 LTS |
:::important
Boss Room: Small Scale Co-op Sample always requires the latest version of Unity MLAPI.
diff --git a/releases/samples/release-0-1-0.md b/releases/samples/release-0-1-0.md
index 4c7cbe208..eafdc2508 100644
--- a/releases/samples/release-0-1-0.md
+++ b/releases/samples/release-0-1-0.md
@@ -9,7 +9,7 @@ The Boss Room: Small Scale Co-op Sample v0.1.0 release provides new sample code,
| Product | Version | Status | Release Date | Supported Unity Versions |
| -- | -- | -- | -- | -- |
-| Boss Room: Small Scale Co-op Sample | 0.1.0 | Early Access | April 7, 2021 | 2020.3 and later |
+| Boss Room: Small Scale Co-op Sample | 0.1.0 | Early Access | April 7, 2021 | 2020.3.0f1 |
:::important
Boss Room: Small Scale Co-op Sample always requires the latest version of Unity MLAPI. See [Unity MLAPI](../index.md) for more information on those features, fixes, and known issues.
@@ -65,7 +65,7 @@ v0.1.1 is a hotfix for an Early Access release for Boss Room: Small Scale Co-op
The following issues may occur for access and games:
* Sometimes when the host leaves the Boss Room, not all clients will return to the Main Menu, but will remain stuck in the Boss Room scene.
-* Sometimes after completing a match and the host starts a new match from the Victory or Loss screen, connected players may have no visible interactions to join or select characters.
+* Sometimes after completing a match and the host starts a new match from the Victory or Loss screen, connected players may have no visible interactions to join or select characters.
* A player may encounter a rare exception when the Tank character uses her Shield Aura ability. This issue may be due to intercepting the Boss charge attack.
* If two players in the Character Select **Ready** for the same hero at the same time, the UI will update to *Readied* on both clients, but only one will have actually selected the hero on the Host. This issue blocks Character Select from proceeding.
* Any player that plays the game and then returns to the Main Menu may be unable to Start or Join properly again, requiring you to restart the client.
@@ -82,6 +82,6 @@ The following issues may occur for access and games:
## Learn more
-See [Getting Started with Boss Room](../../learn/getting-started-boss-room.md) to install and get started with Boss Room.
+See [Getting Started with Boss Room](/docs/learn/bossroom) to install and get started with Boss Room.
To provide feedback and content on documentation, see the links at the bottom of each page.
\ No newline at end of file
diff --git a/releases/samples/release-0-2-0.md b/releases/samples/release-0-2-0.md
new file mode 100644
index 000000000..713edd9e7
--- /dev/null
+++ b/releases/samples/release-0-2-0.md
@@ -0,0 +1,145 @@
+---
+id: samples-0-2-0
+title: Boss Room Small Scale Co-op Sample 0.2.0 - 2021-05-19
+sidebar_label: Boss Room 0.2.x
+description: Release notes for Boss Room Small Scale Co-op Sample v0.2.0, the first release of the Boss Room sample project for Unity MLAPI.
+---
+
+The Boss Room: Small Scale Co-op Sample v0.2.0 release provides new sample code, assets, and features for the Boss Room cooperative game sample project. THis project provides a learning experience for Unity MLAPI.
+
+| Product | Version | Status | Release Date | Supported Unity Versions |
+| -- | -- | -- | -- | -- |
+| Boss Room: Small Scale Co-op Sample | 0.2.0 | Early Access | May 19, 2021 | v2020.3.8f1 LTS |
+
+:::important
+Boss Room: Small Scale Co-op Sample always requires the latest version of Unity MLAPI. See [Unity MLAPI](../index.md) for more information on those features, fixes, and known issues.
+:::
+
+## [0.2.0] - 2021-05-19
+
+## New features
+
+This release includes the following new features and additions:
+
+* Introduced static scene `NetworkObject`s to BossRoom scene including the following updates:
+
+ * Implemented a `ScriptableObject` based event system to encapsulate events inside assets. These objects include a `GameEvent` (ScriptableObject) and `GameEventListener` (MonoBehaviour) to encapsulate events inside assets, located in the `ServerBossRoomState` prefab which now has a `GameEventListener` component. The event associated to this listener is `BossDefeated`, which the Boss raises when the `LifeState` is Dead in the `RaiseEventOnLifeChange` component.
+ * Added two separator `GameObject`s for scene readability: runtime `NetworkObject`s and `NetworkObject`s already placed in the scene.
+ * Added a custom editor for GameEvents to fire in the editor (greatly enhances testing).
+ * The `LifeState` `NetworkVariable` was moved from `NetworkCharacterState` into its own component, `NetworkLifeState`.
+ * Cleaned up and removed old spawn prefab collections and spawner scripts (`NetSpawnPoint`).
+
+* Added ramp-up animation for hero movement and actions
+* Added F/X and animation assets for the game including:
+
+ * Audio files for boss sound effects
+ * Visual effects and particles for Tank charge skill
+ * Art assets to wave spawner, including animations for ReceiveDamage, Broken (died), and Revive
+
+* Added Boss fight theme.
+* Updated and added various hero abilities:
+
+ * Added a cooldown to Archer's PowerShot.
+ * Added the Rogue's Dagger and Dash skills. The dash skill shows an instinct teleport (using an RPC) instead of a charge like the boss' (which updates its position over time).
+ * Added the Rogue's Sneak skill using local stealth, applying a graphical effect to the stealthy character while still sending all network events normally.
+ * Properly display Heal abilities when targeting a fallen ally character.
+ * Character attack actions properly support Hold to charge options.
+
+* To show how UI elements and game objects can be networked, added networked functionality using `INetworkSerializable` in the `CharSelect` screen to network player's selected character on the Character Selection screen.
+* Added input sanitization to remove any invisible characters introduced by other chat programs when copy-pasting room names, IP addresses, or ports. (Useful when sharing with friends.)
+* Added disconnection error message to load when a player or host disconnects. Client logic was also updated to detect Host disconnection scenarios, such as losting connectivity.
+* Balanced hero and enemy stats, spawners, trigger areas, and enemy detetction areas.
+* Added healthbars to display when damaged and properly track imp health locally and across clients.
+
+## Changes
+
+* The Boss Room project now loads MLAPI 0.1.0-experimental package through the Unity Package Manager Registry. See the [MLAPI install guide](/docs/migration/install) for details.
+* Updated the user interface including the following:
+
+ * When joining a game, a "Connecting..." UI loads. When disconnecting from a game, you are returned to the MainMenuScene with a "Connection to Host lost" message. If the game fails to connect, a general message "Connection to Host failed" loads.
+ * Added an option to leave the lobby after joining it. You no longer have to restart the game to leave the lobby.
+ * Added option to cancel my selection after clicking **Ready**.
+ * Added a gear icon for accessing and modifying app settings.
+ * The UI now tracks and displays player has arrived, number of connected players in the lobby, and player status.
+
+This release includes the following updates:
+
+* Updated Boss Room per asset and project settings for increased performance and better resource management:
+
+ * Disabled GPU Skinning to optimize GPU usage and FPS.
+ * Lowered quality of ambient occlusion from high to medium.
+ * Switched SMAA High to FXAA (fast mode) reducing GPU cost.
+ * Modified GPU Instancing on imps, heroes, and the boss to significantly reduce the number of draw calls.
+ * Turned off Cast Shadows on Imp and Imp Boss.
+ * Disabled mesh colliders of lava, which is more decorative than interactive.
+ * Refactored the S_SimpleDissolve shader which consumed most import time.
+
+* Removed a duplicated `GameObject` from the MainMenu scene.
+* Reviewed and revised code to better following quality standards.
+* Updated the Mage character base attack to better support the new enqueuing ability and handle game behaviors. Updates include:
+
+ * Actions being non-blocking now allow other actions while a mage-bolt is in flight
+ * Actions send in `ActionSequence` groups to better handle actions when players spam click enemies
+ * Timing issues with animations, actions, and character location
+ * Bolt animation for legitimate hits
+ * Updated attacks not to knock rogues out of stealth
+
+* Updated character attacks to not cause friendly-fire damage between players.
+* Updated and resolved issues with 3D models including polygon count of coins and chest, artifacts where level graphics are stitched together or overlapping characters, and asset map consistency used by objects (color + normal map + emission).
+* Merged `ConnectStatus` and `DisconnectReason` into a single `ConnectStatus`.
+* Updated `ServerGameNetPortal` to properly handle the following:
+
+ * Per-connection state on client disconnect
+ * Additional errors including a full server and player ID (GUID) already playing
+
+* Updated code to allow hosts to specify a port to listen to,removing the hard-coded port.
+* Refactored Action Bar code including the following:
+
+ * Removed the `ButtonID` from `UIHudButton`.
+ * Removed hard-coded values from `HeroActionBar`.
+ * Removed switch statements.
+ * Completed minor code cleanup.
+ * Added verification to only show skill and ability buttons for available character abilities. Empty buttons no longer load for characters.
+
+* Added a call to warm up shaders when the project starts to ensure animations issues do not occur.
+* Removed collision from objects that have a Broken (dead) state.
+* Implemented a better cooldown solution and calculations for tracking and managing character, imp, and boss actions.
+* Updated event registration and unregistration code to be symmetrical across the project.
+
+## Fixes
+
+This release includes the following issue fixes:
+
+* Fixed an issue where any player that plays the game and then returns to the Main Menu may be unable to Start or Join properly again, requiring you to restart the client.
+* Updates and refinements in Boss Room resolved an issue that occurred in some degraded network conditions that caused a replicated entity on a client to vanish from that client, creating the effect of being assailed by an invisible enemy.
+* Fixed displayed graphical affects for casting and blocking a Bolt to correctly match the caster and target, and properly stops animations for cancelled actions across clients.
+* Fixed a rare exception when the Tank character uses her Shield Aura ability to intercept the Boss charge attack.
+* Fixed an issue returning all clients to the Main Menu when the host leaves the Boss Room.
+* Green quads no longer show on impact when the Archer arrow strikes enemies.
+* Fixed issue to correctly allow one player to receive a character when two players in the Character Select click **Ready** for the same hero at the same time. Character Select is no longer blocked.
+* Fixed an issue with boss collisions with a Pillar correctly applying a stun effect and shattering the pillar when using the Trample attack.
+* Fixed the lobby welcome messages to correctly list the player names, including a previous issues for P1 and P2.
+* On Windows, investigated and fixed issues with visible effects for character actions including mage freeze attack.
+* On Windows, fixed issue with imp spawners not respawning new imps after exploring the room.
+* Fixed an issue where the door state does not reflect the existing state when players connect late to a game, for example if other players open the door and a player joins late the door displays as closed.
+* Removed a previous work-around for character selections when host replays a completed game. The issue was resolved, allowing players to see character selections during replay.
+* Fixed collision wall settings, fixing an issues where the boss knock-back ability sent players through walls.
+* Resolved an issue where any players leaving the lobby sent all players to the lobby.
+* Fixed the ignored health amount (HP parameter) for revived characters. The correct value correctly sets the revived character to a lower amount than maximum.
+* Fixed animations for enemies including the smoke animation for destroyed imps and the boss helmet when crying.
+* Fixed loading of the game skybox before the menu loaded.
+
+## Known issues
+
+The following issues may occur for access and games:
+
+* An MLAPI soft sync error on cleanup between scene transitions may break the game, for example imps do not spawn and pots are intangible.
+* The game can be initiated while a second player is connecting to the host in `CharSelect`. Players may join without selected characters spawning and in an unresponsive state.
+* Sometimes after completing a match and the host starts a new match from the Victory or Loss screen, connected players may have no visible interactions to join or select characters. A work-around is implemented to not block entry into the game.
+* Sometimes the client may be disconnected from Photon which causes a timeout and `PhotonRealtimeTransport` to be in a bad state after the shutdown. An exception is developed that fires every frame.
+
+## Learn more
+
+See [Getting Started with Boss Room](/docs/learn/bossroom) to install and get started with Boss Room.
+
+To provide feedback and content on documentation, see the links at the bottom of each page.
\ No newline at end of file
diff --git a/sidebars.js b/sidebars.js
index bade5c765..a6c341677 100644
--- a/sidebars.js
+++ b/sidebars.js
@@ -315,11 +315,11 @@ module.exports = {
"items": [
{
"type": "doc",
- "id": "learn/multiplayergamearhitectureintroduction"
+ "id": "learn/multiplayer-game-arhitecture"
},
{
"type": "doc",
- "id": "learn/listenserverhostarchitecture"
+ "id": "learn/listen-server-host-architecture"
},
]
},
diff --git a/sidebarsReleases.js b/sidebarsReleases.js
index d14839236..52b75e5e3 100644
--- a/sidebarsReleases.js
+++ b/sidebarsReleases.js
@@ -19,11 +19,20 @@ module.exports = {
},
]
},
-
{
- type: 'doc',
- id: 'samples/samples-0-1-0',
- label: 'Boss Room Small Scale Co-op Sample 0.1.0 - 2021-04-07',
+ "collapsed": true,
+ "type": "category",
+ "label": "Boss Room Samples",
+ "items": [
+ {
+ type: 'doc',
+ id: 'samples/samples-0-2-0',
+ },
+ {
+ type: 'doc',
+ id: 'samples/samples-0-1-0',
+ },
+ ]
},
{
type: 'doc',
diff --git a/src/theme/DocVersionSuggestions/index.js b/src/theme/DocVersionSuggestions/index.js
new file mode 100644
index 000000000..4e93b2309
--- /dev/null
+++ b/src/theme/DocVersionSuggestions/index.js
@@ -0,0 +1,126 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+import React from 'react';
+import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
+import Link from '@docusaurus/Link';
+import Translate from '@docusaurus/Translate';
+import {
+ useActivePlugin,
+ useActiveVersion,
+ useDocVersionSuggestions,
+} from '@theme/hooks/useDocs';
+import {useDocsPreferredVersion} from '@docusaurus/theme-common';
+
+function UnreleasedVersionLabel({siteTitle, versionLabel}) {
+ return (
+