- Home /
Question by
Shayanben12 · Jun 27, 2017 at 04:39 PM ·
error messageerrormessage
Error CS1729 Problem
I was working on unity and when I clicked play to check the idle animation for the player prefab to loop and pressed play and an error pops up saying "error CS1729: The type UnityEngine.Vector3' does not contain a constructor that takes '1' arguments" if anyone has a solution to this problem please give me an answer
movement = new Vector3 ("moveHorizontal, 0.0f, moveVertical");
Thanks!
Comment
Answer by jwulf · Jun 27, 2017 at 04:49 PM
It should be
movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);
, assuming moveHorizontal and moveVertical are existing variables.
The contructor expects 3 numeric parameters - you gave it one string.
You might want to check out some basic Unity/C#-Tutorials.
Then please accept the answer as the correct one, so the question can be closed (and probably other people looking for a "Error CS1729 Problem" might find an answer easily).
Your answer
![](https://koobas.hobune.stream/wayback/20220612125017im_/https://answers.unity.com/themes/thub/images/avi.jpg)