You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SGs are great, but I really want to have a typed access to AnimationTree, specifically the Parameters, because currently it relies on .Get(), .Set() and .As() methods, and those are really unsafe.
Currently it works like this (BlendSpace2D inside StateMachine as an example):
// Setting blend_position of BlendSpace2D named "Idle"AnimTree.Set("parameters/Idle/blend_position",direction);// Setting some_condition to trueAnimTree.Set("parameters/conditions/some_condition",true);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
The SGs are great, but I really want to have a typed access to AnimationTree, specifically the Parameters, because currently it relies on
.Get(),.Set()and.As()methods, and those are really unsafe.Currently it works like this (BlendSpace2D inside StateMachine as an example):
And the wanted behaviour is something like this:
I could probably try to write it myself, though I don't have experience in creating SGs.
Wanted to know your opinions on the topic.
All reactions