I have a gameobject with a script on it and a child sprite, In the script i want to get the spriteRenderer component of the sprite child, how would i do this?
SpriteRenderer childSr= transform.Find(“child”).GetComponent();
Would it be like this?
I have a gameobject with a script on it and a child sprite, In the script i want to get the spriteRenderer component of the sprite child, how would i do this?
SpriteRenderer childSr= transform.Find(“child”).GetComponent();
Would it be like this?