- Home /
Question by
HildingGames · Jun 27, 2017 at 06:43 AM ·
error message
Unexpected token: .. help
im trying to make animated movment but line 6 keeps failing
animator = GetComponent.(Animator);
error is : Assets/Charecter/movment.js(6,27): BCE0043: Unexpected token: ..
pls help
Comment
Answer by tanoshimi · Jun 27, 2017 at 06:45 AM
Your syntax is incorrect. Unityscript's (slightly peculiar) generic syntax is:
animator = GetComponent.<Animator>();
Your answer
![](https://koobas.hobune.stream/wayback/20220612124946im_/https://answers.unity.com/themes/thub/images/avi.jpg)