Question by
TheBirdingtons · Oct 24, 2021 at 09:59 PM ·
spriterenderersprite renderer
How do I get the sprite shape renderer component in a script?
I need to change the color of a sprite shape object when it is clicked. I know how to do this with a regular sprite renderer, but not a sprite SHAPE renderer. My code: public Color color;
private void Update()
{
GetComponent<???>().color = color;
}
Please help me, its needed for my new game that I just started.
Comment