- Home /
"Change" Prefab Component Attributes
Hello everybody,
I am working on this about 10 hours now and don't get it. I am trying to make a management program to set up the prefabs attributes before initializing them afterwards.
I made a dropdown menu for selecting the different texutres in the resources folder which works fine. Just the "apply" does not work really. Gameobject g = Resources.Load("Prefab") as GameObject;
g.GetComponent().setTexture = images[dropdownMenu.value];
Please Help me!
Well, images are located in Resources folder and should be applied from the management programm to the main program. It works now fine i also automatically rebuild the main program after pressing save in management so the prefabs are added to the new build of my main program. The problem is I just can select images when i am in my management programm in the scene. I want to be able to build the management programm which reads from a certain file location images and applies them to the assets/resources/myPrefab.prefab Is this possible?