Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

highlighting

Discussion in 'Editor & General Support' started by ThierryH, Oct 21, 2014.

  1. ThierryH

    ThierryH

    Joined:
    Jul 1, 2014
    Posts:
    24
    Hello,

    can you help me, please.

    How can I highlighting the game character,
    is this can be done only with shaders, or it is another methods?
     
  2. DrSnake

    DrSnake

    Joined:
    Oct 17, 2014
    Posts:
    33
    What about:
    Code (CSharp):
    1. renderer.material.color = Color.red
     
  3. ThierryH

    ThierryH

    Joined:
    Jul 1, 2014
    Posts:
    24
    thanks, it`s good.
    My question was not correct, I mean how to stroke/highlight around the object. Not the whole object.
     
  4. DrSnake

    DrSnake

    Joined:
    Oct 17, 2014
    Posts:
    33
    I guess you could make a second model, with a little bit bigger scale and set is as a child of the original. Change it's material and add the color you want. And then create a script to appear / disappear on any event you like.
    Oh yea dont forget to disable it's collider.