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

Mark red an empty field

Discussion in 'Scripting' started by Samazure, Jan 13, 2020.

  1. Samazure

    Samazure

    Joined:
    Mar 31, 2013
    Posts:
    7
    Hello everyone. I remember I saw a long time ago a way to make scripts so you can indicate important variables. This meant that when said script was attached to a gameobject, these "important" variables would show color red in the inspector if they were empty to show how important it is.

    But it seems I am not able to find it anymore and was wondering if anyone has it available. I tried searching it with google, but I wasn't able to find it there.

    I'm quite new to the concept of serialization so I'm not ready yet to do it quite myself yet and I would really love to see it to learn more about it.

    Thanks.
     
  2. SisusCo

    SisusCo

    Joined:
    Jan 29, 2019
    Posts:
    1,135
    Samazure likes this.
  3. Samazure

    Samazure

    Joined:
    Mar 31, 2013
    Posts:
    7
    SisusCo likes this.