Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
## [2.1.0] - 2023-11-21

### *General*
- Increased minimum version to 2023.3+

### *Network Simulator*
- Fixed an issue with execution order dependend initialization of NetworkAdapters.

### *Network Scene Visualization*
- Improved usability when pausing the editor.
  • Loading branch information
Unity Technologies committed Nov 21, 2023
1 parent 5418dc2 commit 6cb025d
Show file tree
Hide file tree
Showing 88 changed files with 237 additions and 1,282 deletions.
1 change: 1 addition & 0 deletions .buginfo
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ system: jira
server: jira.unity3d.com
project: MTL
issuetype: Bug
package: Multiplayer Tools
27 changes: 0 additions & 27 deletions CHANGELOG.future.md

This file was deleted.

7 changes: 0 additions & 7 deletions CHANGELOG.future.md.meta

This file was deleted.

11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to this package will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [2.1.0] - 2023-11-21

### *General*
- Increased minimum version to 2023.3+

### *Network Simulator*
- Fixed an issue with execution order dependend initialization of NetworkAdapters.

### *Network Scene Visualization*
- Improved usability when pausing the editor.

## [2.0.0-pre.5] - 2023-09-19

### *General*
Expand Down
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# see https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners for more information
* @Unity-Technologies/netcode-tools
* @Unity-Technologies/multiplayer-tools
13 changes: 8 additions & 5 deletions Common/Runtime/Data/ContinuousExponentialMovingAverage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,14 @@ public static ContinuousExponentialMovingAverage CreateWithHalfLife(double halfL
/// more responsive CEMA with less smoothing, whereas a smaller decay constant will result in a slower,
/// less responsive CEMA with more smoothing.
public static double GetDecayConstantForHalfLife(double halfLife) => k_ln2 / halfLife;

/// The decay constant is λ = ln(2) / HalfLife. A larger decay constant will results in a faster,
/// more responsive CEMA with less smoothing, whereas a smaller decay constant will result in a slower,
/// less responsive CEMA with more smoothing.
public static float GetDecayConstantForHalfLife(float halfLife) => k_ln2F / halfLife;

/// <summary>
/// Computes the decay constant, which is λ = ln(2) / HalfLife (Unit: 1/s).
/// A larger decay constant will results in a faster, more responsive CEMA with less smoothing, whereas a
/// smaller decay constant will result in a slower, less responsive CEMA with more smoothing.
/// Returns a negative value in case of invalid input (halfLife <= 0).
/// </summary>
public static float GetDecayConstantForHalfLife(float halfLife) => halfLife > 0 ? k_ln2F / halfLife : -1f;

public ContinuousExponentialMovingAverage(double decayConstant, double value = 0d, double time = k_DefaultInitialTime)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static bool Enabled

static HierarchyWindowDecorator()
{
s_Enabled = EditorPrefs.GetBool(k_EditorPrefsKey, false);
s_Enabled = EditorPrefs.GetBool(k_EditorPrefsKey, false) && EditorPrefs.GetBool("DeveloperMode");
EditorApplication.hierarchyWindowItemOnGUI -= DecoratorHandler;
EditorApplication.hierarchyWindowItemOnGUI += DecoratorHandler;
}
Expand Down
13 changes: 10 additions & 3 deletions Editor/MultiplayerToolsWindow/Features/NetSceneVis.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using UnityEditor;
using UnityEngine;
#if UNITY_2023_2_OR_NEWER
#if NETVIS_AVAILABLE
using UnityEditor.Overlays;
#endif

Expand All @@ -14,7 +14,7 @@ class NetSceneVis : IMultiplayerToolsFeature
public string ButtonText => "Open";
public string DocumentationUrl => "https://docs-multiplayer.unity3d.com/tools/current/netscenevis/";

#if UNITY_2023_2_OR_NEWER && UNITY_NETCODE_GAMEOBJECTS_1_1_ABOVE
#if NETVIS_AVAILABLE && UNITY_NETCODE_GAMEOBJECTS_1_1_ABOVE
public bool IsAvailable => true;
public string AvailabilityMessage => "Available";

Expand All @@ -34,7 +34,14 @@ public void Open()
}
#else
public bool IsAvailable => false;
public string AvailabilityMessage => "Network Scene Visualization is only available in Unity 2023.2+, with Netcode for GameObjects 1.1+";

#if UNITY_2023_1_OR_NEWER
public string AvailabilityMessage => "Network Scene Visualization is only available from version 2023.1.14f1, with Netcode for GameObjects 1.1+";
#elif UNITY_2022_1_OR_NEWER
public string AvailabilityMessage => "Network Scene Visualization is only available from version 2022.3.11f1, with Netcode for GameObjects 1.1+";
#else
public string AvailabilityMessage => "Network Scene Visualization is only available from version 2022.3.11f1+ for Unity 2022 or 2023.1.14f1+ for Unity 2023, with Netcode for GameObjects 1.1+";
#endif
public void Open() => throw new NotImplementedException();
#endif
}
Expand Down
3 changes: 2 additions & 1 deletion Editor/MultiplayerToolsWindow/MultiplayerToolsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ void OnEnable()
sectionRoot.Add(InstantiateSection(sectionTree, new Rnsm()));
sectionRoot.Add(InstantiateSection(sectionTree, new NetworkSimulatorFeature()));
sectionRoot.Add(InstantiateSection(sectionTree, new NetworkProfiler()));
sectionRoot.Add(InstantiateSection(sectionTree, new Decorator()));
if(EditorPrefs.GetBool("DeveloperMode"))
sectionRoot.Add(InstantiateSection(sectionTree, new Decorator()));
AddPackageVersions(root.Q("PackageRoot"));
root.Q<Button>("OpenPackageManagerButton").clickable.clicked += OpenPackageManager;
rootVisualElement.Add(root);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
"name": "com.unity.netcode.gameobjects",
"expression": "1.1.0",
"define": "UNITY_NETCODE_GAMEOBJECTS_1_1_ABOVE"
},
{
"name": "Unity",
"expression": "[2022.3.11f1,2023)",
"define": "NETVIS_AVAILABLE"
},
{
"name": "Unity",
"expression": "2023.1.14f1",
"define": "NETVIS_AVAILABLE"
}
],
"noEngineReferences": false
Expand Down
8 changes: 0 additions & 8 deletions Editor/Settings.meta

This file was deleted.

159 changes: 0 additions & 159 deletions Editor/Settings/BuildSettings.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Editor/Settings/BuildSettings.cs.meta

This file was deleted.

62 changes: 0 additions & 62 deletions Editor/Settings/BuildSymbol.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Editor/Settings/BuildSymbol.cs.meta

This file was deleted.

Loading

0 comments on commit 6cb025d

Please sign in to comment.