KybernetikGames / animancer

Documentation for the Animancer Unity Plugin.
65 stars 8 forks source link

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

Closed ba-zero closed 3 weeks ago

ba-zero commented 1 year ago

Environment

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

KybernetikGames commented 1 year ago

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

KybernetikGames commented 1 year ago

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 commented 2 months ago

Animancer v8.0 is now available for Alpha Testing and includes this fix..

KybernetikGames commented 3 weeks ago

Animancer v8.0 is now fully released.