C
C#2y ago
Cat

❔ how do i call the sprite renderer component in a C# script

title said it all
7 Replies
Cat
CatOP2y ago
TheRanger
TheRanger2y ago
NPC.GetComponent<SpriteRenderer>().Color = new ..............
NPC.GetComponent<SpriteRenderer>().Color = new ..............
Cat
CatOP2y ago
ty
TheRanger
TheRanger2y ago
also its .color not .Color and its type isnt Vector4 its Color you should check Unity's API
Cat
CatOP2y ago
oh ty
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server