[Solved]How to make changes to all objects with the same sprite?

For my level I added a lot of trees (duplicates of same sprite with different sizes) and now i wanna add a collider to all of them. Except I cant do it one by one as its too time consuming. How do I apply changes to all at once?

Hi UKnowWho,

To solve your specific problem, select all trees in your Hierarchy and assign the collider to them in the Inspector. All selected game objects will get this collider.

For future reference, if you plan to duplicate the same objects, make the game object a prefab first. Then duplicate it in your scene, so all duplicates are connected to your prefab. Then you would be able to simply add a collider to the prefab. The connected game objects would get the collider automatically.

Did this help?


See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms