I’ve searched all results talking about Generic Lists out there and I wasn’t able to find the right way to type a function as Generic List, I would like to to something like this:
function GetList() : List<Texture2D>
{
var foo : List.<Texture2D> = new List.<Texture2D>();
foo.Add( myTex );
return foo;
}