animancer icon indicating copy to clipboard operation
animancer copied to clipboard

HybridAnimancerComponent SetFloat(int id, float value, float dampTime, float deltaTime, float maxSpeed = float.PositiveInfinity) bug and solution

Open ba-zero opened this issue 1 year ago • 3 comments

Environment

  • Animancer Version Number: 7.4.2
  • Animancer Pro or Lite: Pro
  • Unity Version: 2022.3.4f1
  • Platform: Windows 11

Description

The HybridAnimancerComponent SetFloat() method always passes a name even when called with an int ID. image

which results in a "Parameter 'Hash #######' does not exist." warning.

A simple fix is to replace 'name' with 'id': image

ba-zero avatar Jul 09 '23 21:07 ba-zero

Thanks for letting me know, that fix will be in the next version of Animancer.

KybernetikGames avatar Jul 10 '23 00:07 KybernetikGames

I just found another few more similar mistakes in that script. There's 4 places with States.TryGet(name which should be States.TryGet(stateName instead.

KybernetikGames avatar Jul 18 '23 14:07 KybernetikGames