I had to create a child object in a bunch of prefabs for implementing a feature.
This got me thinking that if i had 20 or 100 of these prefabs, how would I be able to add a prefab as a child object to all of these other prefabs without going into prefab mode for every single prefab. Is there a way to do this through a unity feature or do i have to use a tool from the asset store?
If via tools, then please tell me about a few.
Is this also possible via scripting?
You can place one of your prefabs into the scene, add the child objects to your prefab, then add your new creation to the Prefabs folder. Then you can press the “Original Prefab” option in the popup. That way you can have one prefab of your standard object, and one prefab with all the children attached.
The best approach seems to be:
dragging them into the hierarchy → selecting all of the prefabs → adding the child object → overriding the prefabs → deleting the prefab instance