Search Unity

Object Outlined with a color

Discussion in 'Scripting' started by duaneL, Jun 20, 2019.

  1. duaneL

    duaneL

    Joined:
    May 23, 2017
    Posts:
    2
    Newbie here. I am trying to figure out the easiest way to have a script that will highlight/outline an object in a color. I want it to look like it does in the editor when you select an object. No interactivity for now just a script added to an object that makes it have an outline. Does anyone know the simplest/cleanest way to accomplish this in C#? I want to expand on the script but first I wanted to understand the scripting enviornment better. any help would be appriciated.

    upload_2019-6-20_8-35-22.png
     
  2. palex-nx

    palex-nx

    Joined:
    Jul 23, 2018
    Posts:
    1,748
  3. duaneL

    duaneL

    Joined:
    May 23, 2017
    Posts:
    2
    I see. So scripting is only used to turn off and on the shader in an interactive situation. Thank you palex-nx!