- Home /
How to Edit variables of Scripts in A list?
Ok, so in C# Im using a List of my script with variables I want to change for each list entry. How would I make a foldout manu to change that variables in each List entry?
Comment
Just to be clear: you have a List and you want to edit the variables in SomeClassYouWrote?
Answer by Berenger · Jun 08, 2012 at 03:17 PM
Here ye go.
for( int i = 0; i < myList.Count; i++ )
myList[i].pouet = something;
Thats not what I need, what you are doing there is just iterating through an array to assign values, I asked how to make a foldout menu in the editor to do that.