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.

Separating variables by commas makesPropertyAttributes appear between all variables in Unity Editor.

Discussion in 'Scripting' started by Mark-Sweeney, Aug 12, 2017.

  1. Mark-Sweeney

    Mark-Sweeney

    Joined:
    Feb 21, 2010
    Posts:
    172
    If I use:

    Code (CSharp):
    1. [Header("Renderers")]
    2. [Space(10)]
    3.  
    4. public Renderer neonRenderer, neonglowRenderer, circlebg1, circlebg2;
    Those property attributes appear between all the variables, instead of only above the first one.
    How do I fix that?