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

Warning in DA when using [Rpc(SendTo.NotOwner)] #3086

Open
KadaXuanwu opened this issue Oct 5, 2024 · 0 comments
Open

Warning in DA when using [Rpc(SendTo.NotOwner)] #3086

KadaXuanwu opened this issue Oct 5, 2024 · 0 comments
Assignees
Labels
priority:high stat:imported Status - Issue is tracked internally at Unity type:bug Bug Report

Comments

@KadaXuanwu
Copy link

Description

In Distributed Authority mode, calling an RPC with the [Rpc(SendTo.NotOwner)] attribute triggers the warning:
[Invalid Target] There is no server to send to when in Distributed Authority mode!
The RPC still functions as expected, but the warning is misleading. Using for example [Rpc(SendTo.Everyone)] works without triggering a warning.

Reproduce Steps

  1. Set up a Unity project using NGO 2.0.0 (Sep 16, 2024 release).
  2. Enable Distributed Authority mode.
  3. Call an RPC using the [Rpc(SendTo.NotOwner)] attribute.

Actual Outcome

The following warning is shown despite the RPC working as intended:
[Invalid Target] There is no server to send to when in Distributed Authority mode!

Expected Outcome

No warning should appear when using [Rpc(SendTo.NotOwner)] in Distributed Authority mode, as the RPC works as expected.

Screenshots

image

Environment

  • OS: Windows 11 Pro
  • Unity Version: 6000.0.16f1
  • Netcode Version: 2.0.0
  • Netcode Commit: [https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/releases/tag/ngo%2F2.0.0]

Additional Context

@KadaXuanwu KadaXuanwu added stat:awaiting triage Status - Awaiting triage from the Netcode team. type:bug Bug Report labels Oct 5, 2024
@fluong6 fluong6 added the Investigating Issue is currently being investigated label Oct 7, 2024
@NoelStephensUnity NoelStephensUnity added priority:high stat:import Status - Issue is going to be saved internally and removed stat:awaiting triage Status - Awaiting triage from the Netcode team. Investigating Issue is currently being investigated labels Oct 24, 2024
@michalChrobot michalChrobot added stat:imported Status - Issue is tracked internally at Unity and removed stat:import Status - Issue is going to be saved internally labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:high stat:imported Status - Issue is tracked internally at Unity type:bug Bug Report
Projects
None yet
Development

No branches or pull requests

4 participants