Timeline for How to change sprites for multiple child object from a parent?
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 7, 2022 at 12:30 | comment | added | DMGregory♦ | If you want to distinguish roof vs building sprites, I'd recommend making named inspector variables for the two SpriteRenderers, that way you save the runtime search and allocation of an array at start-up, and someone changing a name in the scene/prefab won't break your code. | |
| Oct 7, 2022 at 12:28 | history | edited | DMGregory♦ | CC BY-SA 4.0 | Code formatting |
| Oct 7, 2022 at 5:18 | history | answered | DIGITII | CC BY-SA 4.0 |