How to use hashtable in unityscript?

like,

private var atthash : HashTable = new HashTable();

?
But error says,

BCE0018: The name ‘HashTable’ does not denote a valid type (‘not found’). Did you mean ‘System.Collections.Hashtable’?

so, I think unityscript also need sentence similar with c#'s [using System.Collections;] at top of script, isn’t it? If then, what is it in unityscript?

Or hashtable can’t be used in unityscript?

Thanks.

instead of using it’s import i think but i might be wrong.

import also prroduce same error message above…

oh…my…
problem was uppercase…

private var atthash : Hashtable = new Hashtable();

solves everything.

right, i didn’t spot that one :slight_smile: