Attach scripts to imported object parts,Attach Scripts to an imported object child
So I made a streetlight with two light Sources and the Lamp itself in Blender. Now I want to attach a script to the two Lights. How do I do that? Its all greyed out.
Its Maybe not very visible because the originial Image has 512kb of size but the program says my filesize of 530kb is exceeded. Sorry for that, thank the stupid Website for that. ,So, I made a streetlight in Blender that consists of the lamp and two light Sources. I now want to add a script to the lightsources which basically turns them off at day. I dont know how though as in the package everything is greyed out. I also cant upload an Image because it says maximum file size of 520kb exceeded, although the Picture is just 512kb. Stupid program. So as I said, it Looks like the normal inspector but with everything greyed out. And I dont wanna attach them manually to every instance because I have like 400 light Sources that Need this script. Can someone help me please?
Answer by xxmariofer · Aug 17, 2020 at 01:27 PM
you will need to drag and drop to the scene, add the component and drag and drop again to the window, so that it changes to a prefab
Your answer
Follow this Question
Related Questions
Start moving unchecks itself 0 Answers
how to make an object change size automatically when playing so it doesnt go through objects 0 Answers
How can i stop the stretch effect of a material when i add it to an object and then resize it 2 Answers
pushback player on collision 1 Answer
Detect if an object is bigger or smaller than you when you collide with it. 1 Answer