Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

unity

Why does Getcomponent and all the other code not work .

And all the code is white but some words should be in color .

Answers

  • Monobehaviour is white to, and i saw on youtube clips it should be in color

  • edited October 11

    Its just the color theme if you go to tools then environment there should be an option for fonts and colors.

  • HNJHNJ Member
    edited October 11

    it should be

    GetComponent<SpriteRenderer>().color = Color.red;   // Color.red is capital C
    
Sign In or Register to comment.