Skip to content

OwnerNetworkAnimator.SetTrigger not immediately triggered for Owner = Server case #3576

Closed

Description

@LaPluses

Description

I copy paste this OwnerNetworkAnimator script, and find it has issue when the owner is server.

And am using the traditional CS mode, not the DistributedAuthorityMode.

The issue is here NetworkAnimation.cs.

Image

When the server is the owner(and sure it's the host), its SetTrigger will not immediately call InternalSetTrigger() function.

But if it's not the server, then everything goes well, it will immediately trigger(because we override OnIsServerAuthoritative function and IsServerAuthoritative actually the delegate call of it).

From my understanding, the OwnerNetworkAnimator is to make the owner trigger any animation changes immediately, so it should do same for the server = owenr case, and i do believe this is a bug.

Reproduce Steps

I've already explained in Description section.

Actual Outcome

When the owner is the server, its SetTrigger not immedidately triggered in local client.

Expected Outcome

Neither the owner is server or not, it's SetTrigger call should be immediately triggered.

Screenshots

Already posted the screenshot for the code.

Environment

  • OS: Windows.
  • Unity Version: Unity 6
  • Netcode Version: 2.4.4
  • Netcode Commit: N/A
  • Netcode Topology: Client-Server

Additional Context

N/A

Activity

  1. added
    type:bug
    stat:awaiting-triage
    stat:reply-needed
    on Aug 2, 2025
  2. NoelStephensUnity commented on Aug 4, 2025

    @NoelStephensUnity
    Member

    @LaPluses
    Thank you for bringing this to our attention!
    I am marking this for triage. 👍

  3. added
    stat:awaiting-response
    and removed
    stat:reply-needed
    on Aug 4, 2025
  4. added
    priority:high
    port:1.x-needed
    stat:import
    and removed
    stat:awaiting-triage
    on Aug 4, 2025
  5. added
    stat:imported
    and removed
    stat:import
    on Aug 11, 2025
  6. removed
    stat:awaiting-response
    on Oct 23, 2025
  7. removed
    port:1.x-needed
    on Feb 2, 2026
  8. NoelStephensUnity commented on Feb 2, 2026

    @NoelStephensUnity
    Member

    This was resolved in PR #3586 and should be available in v2.8.x+ versions.

    @LaPluses
    Could you update to v2.8.1 (or higher depending upon when you read this message) to verify your issues is resolved?
    The area in NetworkAnimator you pointed out was updated to allow for an owner to immediately apply a trigger when the NetworkAnimator is using owner authoritative mode.

  9. added
    stat:awaiting-response
    on Feb 2, 2026
  10. LaPluses commented on Feb 10, 2026

    @LaPluses
    Author

    Hi @NoelStephensUnity , I just verified it on my side, everything works fine.

    Thanks for fixing this issue.

  11. added
    stat:reply-needed
    and removed
    stat:awaiting-response
    on Feb 10, 2026
  12. removed
    stat:reply-needed
    on Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:highstat:importedtype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions