For me it's always "integer" of "float" parameters that go missing, I never saw it happening to booleans. I failed to identify the logic behind that. The animator fails to identify miscellaneous parameters ("Parameter XXX does not exist") which vary over the course of the execution : some time parameter A is missing, other times in the same loop parameter A exists but parameter B does not, sometimes both exist or both don't. If somebody can help me I would be so much gratefulĬlick to expand.Confirmed, bug still there. Transform.position = Vector3.MoveTowards(transform.position, transform.position + direction, speed * ltaTime) Vector3 direction = transform.right * Input.GetAxis("Horizontal") If (isGrounded & Input.GetButtonDown("Jump")) UnityEngine.Animator:SetInteger(String, Int32)Ĭharacter:set_State(CharState) (at Assets/Scripts/Character.cs:18)Ĭharacter:CheckGrounded() (at Assets/Scripts/Character.cs:84)Ĭharacter:FixedUpdate() (at Assets/Scripts/Character.cs:36)" The particular call that caused the error is Animator's "IsParameterControlledB圜urve( hashValue )" I tried putting the caching in Start() instead of Awake() because I've sometimes had trouble with affecting the animator as early as Awake(). When the hashed values are used used in Update(), only the last layer seemed to throw up the warning. I cached off hashes of each layer into a list, during Awake(), using _anim.layerCount to iterate through all the animator's layers, and _anim.GetLayerName(i) to get the name of the layer. Just appeared in 5.5.0f3 for me after an upgrade. ![]() ![]() ![]() Probably not good for stuff that's animated en masse, but this is a one off in our game.Īnyway, yeah, i forgot to add a parameter with the same name] And yes, it means that we're kind of a frame behind with the layer weights, but we can always call "animator.Update(0)" to refresh. To control our layers' weight from animation curves, we add a parameter with the same name as the layer, check if that parameter is being controlled, and if it is, we set the weight of the layer to that curve value.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |