hi guys im having problem how to do an arraylist that will display all the result in a plane, such as like this example displaying the picture of my facebook frends in my app.
in C#
using System.Collections.Generic;
public class MyScript : MonoBehaviour
{
ArrayList myList = new ArrayList();
void Start()
{
}
void Update()
{
}
}
Yes “tombali” is right, but is not complete, there are two kind of arraylists,
for the first read the "tombal post
C#
You can use Array as ArrayList, See the scripting reference.
JS
and the second arraylist is based on the object that you are using. example if you are working on Transforms use Transform, if you are working on Strings, use Strings
c#
You should use built-in arrays, or generic Lists, rather than ArrayList, which is outdated. @Preetthefire: JS for List is “var myList : List.”.
–Eric
hi guys thank you for your help, i found out unity is difficult in displaying an object in an arraylist.