Question by
MyUserNameIsWhat · Apr 12, 2020 at 11:45 PM ·
c#error messagenullgetkeydown
How do i fix "Edge.fromNode is null" and "Removing null node"
Hello! good am/pm, I am new at unity and i made a script and when i play my game two error's came up "Edge.fromNode" and "Removing null node", am i missing an reference variable? is there anyway to solve this error problem? or is there a way it to be fix? it would be kindly if someone answer or response, Thanks!
{ Animator m_animator;
// Start is called before the first frame update
void Start()
{
m_animator = GetComponent<Animator>();
}
// Update is called once per frame
void Update()
{
bool isWalkingPressed = Input.GetKey("right");
m_animator.SetBool("isWalking", isWalkingPressed);
bool isJumpingPressed = Input.GetKeyDown("space");
m_animator.SetBool("isJumping", isJumpingPressed);
}
}
Comment