Hi I am converting one of the scripts I found on the asset store into C# I got stuck on this piece of code:
function AddItem(Item:Transform)
{
var newContents = new Array(Contents);
newContents.Add(Item);
Contents=newContents.ToBuiltin(Transform); //Array to unity builtin array
Contents is var Contents : Transform[ ];
how would I change it I know how to change the function but I have no clue what about the rest, I am not sure about the ToBuiltin. Any Help would be appreciated!