Hello. I want to disable sprite renderer all of them that is a child of a gameobject how do i do that?
SpriteRenderer sprites = GetComponentsInChildren();
for(int i = 0; i < sprites.Length; i++){
sprites*.enabled = false;*
}
Hello. I want to disable sprite renderer all of them that is a child of a gameobject how do i do that?
SpriteRenderer sprites = GetComponentsInChildren();
for(int i = 0; i < sprites.Length; i++){
sprites*.enabled = false;*
}