Skip to content

Animation curves generating NetworkAnimator warnings #2391

@MiTschMR

Description

@MiTschMR

Description

I use an asset called Game Creator 2 by Catsoft Works which introduced animation curves in their last update 2.8.31 and integrate that into Easy UGS by MiTschMR Studios (which I am the dev of). I linked their animation component within Network Animator and instantiate their player. When moving, animations with curves generate warnings within the NetworkAnimator.

Reproduce Steps

  1. Import GC2 into the project
  2. Import Easy UGS into the project
  3. Follow https://mitschmr-studios.io/documentation/easyugs/netcode/getstarted.html
  4. Move the player and check the console

Actual Outcome

Warnings like this are thrown:

Parameter 'Hash -819361287' is controlled by a curve.
UnityEngine.Animator:SetFloat (int,single)
Unity.Netcode.Components.NetworkAnimator:ReadParameters (Unity.Netcode.FastBufferReader) (at Library/PackageCache/[email protected]/Components/NetworkAnimator.cs:1039)
Unity.Netcode.Components.NetworkAnimator:UpdateParameters (Unity.Netcode.Components.NetworkAnimator/ParametersUpdateMessage) (at Library/PackageCache/[email protected]/Components/NetworkAnimator.cs:1060)
Unity.Netcode.Components.NetworkAnimatorStateChangeHandler:NetworkUpdate (Unity.Netcode.NetworkUpdateStage) (at Library/PackageCache/[email protected]/Components/NetworkAnimator.cs:69)
Unity.Netcode.NetworkUpdateLoop:RunNetworkUpdateStage (Unity.Netcode.NetworkUpdateStage) (at Library/PackageCache/[email protected]/Runtime/Core/NetworkUpdateLoop.cs:185)
Unity.Netcode.NetworkUpdateLoop/NetworkPreUpdate/<>c:<CreateLoopSystem>b__0_0 () (at Library/PackageCache/[email protected]/Runtime/Core/NetworkUpdateLoop.cs:232)

Expected Outcome

No warnings are thrown.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

  • OS: Windows 11 22H2 (Build 22621.1105)
  • Unity Version: 2021.3.4f1
  • Netcode Version: 1.2.0

Additional Information

According to the GC2 dev, If a "bone" with a curve is called the same as a "parameter" it's then bound to the curve.
You could check for that and skip if that is the case, otherwise set it as usual.

Metadata

Metadata

Labels

priority:mediumThis issue has medium priority and may take some time to be resolvedstat:importedStatus - Issue is tracked internally at Unitytype:bugBug Report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions