Skip to content
Closed
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
1 change: 1 addition & 0 deletions com.unity.netcode.gameobjects/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Additional documentation and release notes are available at [Multiplayer Documen

- Updated `UnityTransport` dependency on `com.unity.transport` to 1.1.0. (#2025)
- (API Breaking) `ConnectionApprovalCallback` is no longer an `event` and will not allow more than 1 handler registered at a time. Also, `ConnectionApprovalCallback` is now a `Func<>` taking `ConnectionApprovalRequest` in and returning `ConnectionApprovalResponse` back out (#1972)
- (API Breaking) `NetworkTransform.OnIsServerAuthoritatitive` is now obsolete. Use `NetworkTransform.OnIsServerAuthoritative` instead. (typo in original method name)

### Removed

Expand Down
11 changes: 11 additions & 0 deletions com.unity.netcode.gameobjects/Components/NetworkTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,17 @@ public void Teleport(Vector3 newPosition, Quaternion newRotation, Vector3 newSca
m_LocalAuthoritativeNetworkState.IsTeleportingNextFrame = false;
}


/// <summary>
/// Please override <see cref="OnIsServerAuthoritative"/> instead (typo in this method's name).
/// Do not use this method as of v1.0.0.pre-10
/// </summary>
[System.Obsolete("Method OnIsServerAuthoritatitive has been deprecated. Use OnIsServerAuthoritative instead (UnityUpgradable)", true)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
protected bool OnIsServerAuthoritatitive(){
throw new NotSupportedException("OnIsServerAuthoritatitive method has been deprecated.");
}

/// <summary>
/// Override this method and return false to switch to owner authoritative mode
/// </summary>
Expand Down