Skip to content
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
60 changes: 30 additions & 30 deletions .yamato/wrench/validation-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ validate_-_netcode_gameobjects_-_2021_3_-_macos:
retries: 1
- command: echo No internal packages to add.
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
timeout: 40
timeout: 180
retries: 0
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
timeout: 5
Expand All @@ -30,7 +30,7 @@ validate_-_netcode_gameobjects_-_2021_3_-_macos:
timeout: 10
retries: 0
- command: UnifiedTestRunner --testproject=test-netcode.gameobjects --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}"
timeout: 40
timeout: 180
retries: 1
after:
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-mac.sh
Expand Down Expand Up @@ -87,7 +87,7 @@ validate_-_netcode_gameobjects_-_2021_3_-_ubuntu:
retries: 1
- command: echo No internal packages to add.
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
timeout: 40
timeout: 180
retries: 0
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
timeout: 5
Expand All @@ -96,7 +96,7 @@ validate_-_netcode_gameobjects_-_2021_3_-_ubuntu:
timeout: 10
retries: 0
- command: UnifiedTestRunner --testproject=test-netcode.gameobjects --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}"
timeout: 40
timeout: 180
retries: 1
after:
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-linux.sh
Expand Down Expand Up @@ -153,7 +153,7 @@ validate_-_netcode_gameobjects_-_2021_3_-_windows:
retries: 1
- command: echo No internal packages to add.
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
timeout: 40
timeout: 180
retries: 0
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
timeout: 5
Expand All @@ -162,7 +162,7 @@ validate_-_netcode_gameobjects_-_2021_3_-_windows:
timeout: 10
retries: 0
- command: UnifiedTestRunner.exe --testproject=test-netcode.gameobjects --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}"
timeout: 40
timeout: 180
retries: 1
after:
- command: .yamato\generated-scripts\infrastructure-instability-detection-win.cmd
Expand Down Expand Up @@ -219,7 +219,7 @@ validate_-_netcode_gameobjects_-_2022_3_-_macos:
retries: 1
- command: echo No internal packages to add.
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
timeout: 40
timeout: 180
retries: 0
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
timeout: 5
Expand All @@ -228,7 +228,7 @@ validate_-_netcode_gameobjects_-_2022_3_-_macos:
timeout: 10
retries: 0
- command: UnifiedTestRunner --testproject=test-netcode.gameobjects --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}"
timeout: 40
timeout: 180
retries: 1
after:
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-mac.sh
Expand Down Expand Up @@ -285,7 +285,7 @@ validate_-_netcode_gameobjects_-_2022_3_-_ubuntu:
retries: 1
- command: echo No internal packages to add.
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
timeout: 40
timeout: 180
retries: 0
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
timeout: 5
Expand All @@ -294,7 +294,7 @@ validate_-_netcode_gameobjects_-_2022_3_-_ubuntu:
timeout: 10
retries: 0
- command: UnifiedTestRunner --testproject=test-netcode.gameobjects --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}"
timeout: 40
timeout: 180
retries: 1
after:
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-linux.sh
Expand Down Expand Up @@ -351,7 +351,7 @@ validate_-_netcode_gameobjects_-_2022_3_-_windows:
retries: 1
- command: echo No internal packages to add.
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
timeout: 40
timeout: 180
retries: 0
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
timeout: 5
Expand All @@ -360,7 +360,7 @@ validate_-_netcode_gameobjects_-_2022_3_-_windows:
timeout: 10
retries: 0
- command: UnifiedTestRunner.exe --testproject=test-netcode.gameobjects --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}"
timeout: 40
timeout: 180
retries: 1
after:
- command: .yamato\generated-scripts\infrastructure-instability-detection-win.cmd
Expand Down Expand Up @@ -417,7 +417,7 @@ validate_-_netcode_gameobjects_-_6000_0_-_macos:
retries: 1
- command: echo No internal packages to add.
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
timeout: 40
timeout: 180
retries: 0
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
timeout: 5
Expand All @@ -426,7 +426,7 @@ validate_-_netcode_gameobjects_-_6000_0_-_macos:
timeout: 10
retries: 0
- command: UnifiedTestRunner --testproject=test-netcode.gameobjects --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}"
timeout: 40
timeout: 180
retries: 1
after:
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-mac.sh
Expand Down Expand Up @@ -483,7 +483,7 @@ validate_-_netcode_gameobjects_-_6000_0_-_ubuntu:
retries: 1
- command: echo No internal packages to add.
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
timeout: 40
timeout: 180
retries: 0
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
timeout: 5
Expand All @@ -492,7 +492,7 @@ validate_-_netcode_gameobjects_-_6000_0_-_ubuntu:
timeout: 10
retries: 0
- command: UnifiedTestRunner --testproject=test-netcode.gameobjects --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}"
timeout: 40
timeout: 180
retries: 1
after:
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-linux.sh
Expand Down Expand Up @@ -549,7 +549,7 @@ validate_-_netcode_gameobjects_-_6000_0_-_windows:
retries: 1
- command: echo No internal packages to add.
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
timeout: 40
timeout: 180
retries: 0
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
timeout: 5
Expand All @@ -558,7 +558,7 @@ validate_-_netcode_gameobjects_-_6000_0_-_windows:
timeout: 10
retries: 0
- command: UnifiedTestRunner.exe --testproject=test-netcode.gameobjects --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}"
timeout: 40
timeout: 180
retries: 1
after:
- command: .yamato\generated-scripts\infrastructure-instability-detection-win.cmd
Expand Down Expand Up @@ -615,7 +615,7 @@ validate_-_netcode_gameobjects_-_6000_1_-_macos:
retries: 1
- command: echo No internal packages to add.
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
timeout: 40
timeout: 180
retries: 0
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
timeout: 5
Expand All @@ -624,7 +624,7 @@ validate_-_netcode_gameobjects_-_6000_1_-_macos:
timeout: 10
retries: 0
- command: UnifiedTestRunner --testproject=test-netcode.gameobjects --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}"
timeout: 40
timeout: 180
retries: 1
after:
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-mac.sh
Expand Down Expand Up @@ -681,7 +681,7 @@ validate_-_netcode_gameobjects_-_6000_1_-_ubuntu:
retries: 1
- command: echo No internal packages to add.
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
timeout: 40
timeout: 180
retries: 0
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
timeout: 5
Expand All @@ -690,7 +690,7 @@ validate_-_netcode_gameobjects_-_6000_1_-_ubuntu:
timeout: 10
retries: 0
- command: UnifiedTestRunner --testproject=test-netcode.gameobjects --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}"
timeout: 40
timeout: 180
retries: 1
after:
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-linux.sh
Expand Down Expand Up @@ -747,7 +747,7 @@ validate_-_netcode_gameobjects_-_6000_1_-_windows:
retries: 1
- command: echo No internal packages to add.
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
timeout: 40
timeout: 180
retries: 0
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
timeout: 5
Expand All @@ -756,7 +756,7 @@ validate_-_netcode_gameobjects_-_6000_1_-_windows:
timeout: 10
retries: 0
- command: UnifiedTestRunner.exe --testproject=test-netcode.gameobjects --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}"
timeout: 40
timeout: 180
retries: 1
after:
- command: .yamato\generated-scripts\infrastructure-instability-detection-win.cmd
Expand Down Expand Up @@ -813,7 +813,7 @@ validate_-_netcode_gameobjects_-_6000_2_-_macos:
retries: 1
- command: echo No internal packages to add.
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
timeout: 40
timeout: 180
retries: 0
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
timeout: 5
Expand All @@ -822,7 +822,7 @@ validate_-_netcode_gameobjects_-_6000_2_-_macos:
timeout: 10
retries: 0
- command: UnifiedTestRunner --testproject=test-netcode.gameobjects --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}"
timeout: 40
timeout: 180
retries: 1
after:
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-mac.sh
Expand Down Expand Up @@ -879,7 +879,7 @@ validate_-_netcode_gameobjects_-_6000_2_-_ubuntu:
retries: 1
- command: echo No internal packages to add.
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
timeout: 40
timeout: 180
retries: 0
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
timeout: 5
Expand All @@ -888,7 +888,7 @@ validate_-_netcode_gameobjects_-_6000_2_-_ubuntu:
timeout: 10
retries: 0
- command: UnifiedTestRunner --testproject=test-netcode.gameobjects --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}"
timeout: 40
timeout: 180
retries: 1
after:
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-linux.sh
Expand Down Expand Up @@ -945,7 +945,7 @@ validate_-_netcode_gameobjects_-_6000_2_-_windows:
retries: 1
- command: echo No internal packages to add.
- command: upm-pvp test --unity .Editor --packages "upm-ci~/packages/*.tgz" --results upm-ci~/pvp
timeout: 40
timeout: 180
retries: 0
- command: upm-pvp require "pkgprom-promote -PVP-29-2 rme" --results upm-ci~/pvp --exemptions upm-ci~/pvp/failures.json
timeout: 5
Expand All @@ -954,7 +954,7 @@ validate_-_netcode_gameobjects_-_6000_2_-_windows:
timeout: 10
retries: 0
- command: UnifiedTestRunner.exe --testproject=test-netcode.gameobjects --editor-location=.Editor --clean-library --reruncount=1 --clean-library-on-rerun --artifacts-path=artifacts --suite=Editor --suite=Playmode "--ff={ops.upmpvpevidence.enable=true}"
timeout: 40
timeout: 180
retries: 1
after:
- command: .yamato\generated-scripts\infrastructure-instability-detection-win.cmd
Expand Down
8 changes: 8 additions & 0 deletions com.unity.netcode.gameobjects/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ Additional documentation and release notes are available at [Multiplayer Documen

### Added

### Fixed

### Changed

## [1.13.0] - 2025-04-29

### Added

- Added `NetworkManager.OnPreShutdown` which is called before the NetworkManager cleans up and shuts down. (#3358)
- Added `FastBufferReader(ArraySegment<byte> buffer, Allocator copyAllocator)` constructor that uses the `ArraySegment.Offset` as the `FastBufferReader` offset and the `ArraySegment.Count` as the `FastBufferReader` length. (#3320)
- Added `FastBufferReader(ArraySegment<byte> buffer, Allocator copyAllocator, int length = -1)` constructor that uses the `ArraySegment.Offset` as the `FastBufferReader` offset. (#3320)
Expand Down
10 changes: 10 additions & 0 deletions com.unity.netcode.gameobjects/Runtime/Timing/NetworkTime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,16 @@ public NetworkTime ToFixedTime()
return new NetworkTime(m_TickRate, m_CachedTick);
}

/// <summary>
/// Calculates a NetworkTime value representing a point in the past relative to the current time (few ticks in the past).
/// </summary>
/// <param name="ticks">The number of ticks ago we're querying the time.</param>
/// <returns>A NetworkTime value representing the calculated past time point</returns>
public NetworkTime TimeTicksAgo(int ticks)
{
return TimeTicksAgo(ticks, 0.0f);
}

/// <summary>
/// Calculates a NetworkTime value representing a point in the past relative to the current time (few ticks in the past)
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion com.unity.netcode.gameobjects/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.unity.netcode.gameobjects",
"displayName": "Netcode for GameObjects",
"description": "Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.",
"version": "1.12.2",
"version": "1.13.0",
"unity": "2021.3",
"dependencies": {
"com.unity.nuget.mono-cecil": "1.10.1",
Expand Down