Vector2.SignedAngle error

The unity docs say Vector2 has SignedAngle to calculate the angle between 2 vectors.

If I try to use it I get the error, UnityEngine.Vector2' does not contain a definition for SignedAngle’

What am I missing here?

Hey, they added a SignedAngle function! Finally!

It got added in 2017.1, though, which is the Unity version released this Tuesday. If you downloaded Unity before that, you don’t have the function. If you’re in 5.6, replace 2017.1 in the docs with 560:

Haha, ok, now I feel dumb. I didn’t realize it was that new, I’m using 5.6 at the moment which explains my error.

Thanks for pointing that out.

How can i download the 5.6 documentation?

You can get to it from the “Older Versions” dropdown on the top right of any page in the documentation.

i have still an error about it
vector2.signedangle give the error…

What version are you using? If it’s 2017 or higher, SignedAngle still exists. Can you copy and paste the exact code and the exact error message you received?