Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: [2.X] fixes of PVP exceptions #3225

Draft
wants to merge 5 commits into
base: develop-2.0.0
Choose a base branch
from
Draft
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
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,24 @@ public class AnticipatedNetworkTransform : NetworkTransform
internal override bool HideInterpolateValue => true;
#endif

/// <summary>
/// Represents a complete transform state for network synchronization and anticipation
/// </summary>
public struct TransformState
{
/// <summary>
/// The position component of the transform state in world space coordinates.
/// </summary>
public Vector3 Position;

/// <summary>
/// The rotation component of the transform state as a quaternion.
/// </summary>
public Quaternion Rotation;

/// <summary>
/// The scale component of the transform state in local space.
/// </summary>
public Vector3 Scale;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ internal BaseRpcTarget(NetworkManager manager)
}

/// <summary>
/// Can be used to provide additional lock checks before disposing the target.
/// Verifies the target can be disposed based on its lock state.
/// </summary>
/// <exception cref="Exception">The exception thrown if the target is still locked when disposed.</exception>
/// <exception cref="Exception">Thrown when attempting to dispose a locked temporary RPC target</exception>
protected void CheckLockBeforeDispose()
{
if (m_Locked)
Expand All @@ -41,7 +41,7 @@ protected void CheckLockBeforeDispose()
}

/// <summary>
/// Invoked when the target is disposed.
/// Releases resources used by the RPC target.
/// </summary>
public abstract void Dispose();

Expand Down