So I have a script called houseMain.
The script has a configurable option called doors where I can change the number of how many. By adding 1,2,3 I have more elements under doors.
How would I in a script change a certain element. Like if I knew I wanted to change what was in element 0?
Thanks
When something has an element it’s in an array or a list, to access the first object in that array (Element0) you would call the name of the array(index) so you might use myDoors(0) = that to get your first element in your “myDoors” array and assign “that” to it.
Or you could do it correctly and reference the index by using square brackets. myDoors[0] 
Heh, yes you can do that but its not necessary if you don’t want your project to work 
Ok so I am still confused. I might be over thinking it. Let me back up and simplify it first.
GameObject called “Camera_1”
script in “Camera_1” is “doorCamera”
configuable variable in “doorCamera” called “Target”
Now I set “Taget” by dragging and dropping a gameObject to it.
What I need to do is from a diffent script change what is in “Target”
this is what I tried but it is not working what am I doing wrong.
gameObject.Find(“Camera_1”).GetComponent(“doorCamera”).Target=“NewDoorHere”;
my guess is it is the .Target I am doing wrong.
You’re trying to assign Target a string when it is a GameObject. Also - don’t use the string overload of GetComponent. Also - it should be GameObject.Find not gameObject.Find
GameObject NewDoor;
GameObject.Find("Camera_1").GetComponent(doorCamera).Target = NewDoor;