adding a variable in a list on a dictionary (Dictionary) unity C#

according to @jdweng and @Events you can do this instead

Components[pcComp.ComponentType].Add(pcComp.name);

you can treat collections and arraylist as an ordinary array

unlike java

Arraylist.get(0) ir Arraylist.add(var)

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top