Unknown identifier: 'List'.

This…

private var splinePoints = new List.<Vector2>();

Is giving me this…
Error: Unknown identifier: ‘List’.

Why?
I am using an Custom Asset (Vectrosity), specifically on this script. I had been running a test project with this asset, and it worked. I just switched it into my main project, copied a functioning script over and now, I get this.

:?

did you put

using System.Collections.Generic;

that’s how you get lists.

Thank you.

Ya, wish it would default to including that instead of System.Collections…

You can change the script template if you wish
~~ Program Files ~~ \Unity\Editor\Data\Resources\ScriptTemplates
You may need permissions (read only)

And don’t forget to backup your custom templates, the installer overwrites them every time you upgrade Unity.

In javascript/unityscript that should be

import System.Collections.Generic;

i am right?