- Home /
Animator Transitions 'which is not compatible with condition type'
My Parameters are all bools and i just don't get why it's saying this.
Controller 'Main Character Animator': Transition '' in state 'normal' uses parameter 'Jump' which is not compatible with condition type.
My Programming:
![using UnityEngine;
using System.Collections;
public class PlayerMoving : MonoBehaviour
{
public float moveSpeed = 10;
public float jumpingisfun = 10;
Animator anim;
// Use this for initialization
void Start ()
{
anim = GetComponent<Animator>();
}
// Update is called once per frame
void Update ()
{
bool x = Input.GetButton ("Player right");
bool y = Input.GetButton ("Player left");
bool jump = Input.GetButtonDown ("Jumpingisfun");
anim.SetBool ("Speed", x);
anim.SetBool ("Jump", y);
anim.SetBool ("Left", jump);
if (Input.GetButton("Player right"))
transform.Translate (Vector2.right * moveSpeed * Time.deltaTime,0); //Move right
if (Input.GetButton("Player left"))
transform.Translate (Vector2.left * moveSpeed * Time.deltaTime,0); //Move left
if (Input.GetButtonDown("Jumpingisfun"))
transform.Translate (Vector2.up * jumpingisfun * Time.deltaTime, 0); //Jumping IS Fun!! :D
}
}][1]
alt text
[1]: /storage/temp/60703-screenshot-2015-12-26-182402.png
Answer by ZhangPeng1 · Oct 14, 2017 at 07:54 AM
it is because your animation is too different from the model in current scene on transform properties;
Answer by DhiaSendi · Dec 06, 2019 at 03:27 PM
This might be helpful https://answers.unity.com/questions/1070010/transition-x-in-state-y-uses-parameter-z-which-is.html
Your answer
Follow this Question
Related Questions
Animating multiple objects that should interact with eachother 0 Answers
Perform an action on animator state transition? 0 Answers
State Machine Behaviour together with Animation Events 1 Answer
mecanim stuck 0 Answers
Is possible Jump/advance to specific animation frame/time on the Animator Controller? 0 Answers