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. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    Dismiss Notice

PropertyAttribute/PropertyDrawer no longer seems to work on items in an array

Discussion in '2019.2 Beta' started by CasperCoder, Mar 21, 2019.

  1. CasperCoder

    CasperCoder

    Joined:
    Jul 29, 2012
    Posts:
    13
    So as the title says all property drawer attributes seem to be ignored on items in an array. An easy test case for this is the following:

    Code (CSharp):
    1. public class Test : MonoBehaviour
    2. {
    3.     [Range(0.0f, 1.0f)] public float[] m_floats;
    4. }
    That used to expose in the inpsector as an array of sliders now the range attribute is ignored. This seems to have been broken before or at alpha 7 (and is still not working in alpha 9), not sure if it was working in alphas before then but it was working in 2019.1
     
    Last edited: Mar 21, 2019
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,045
    Could you please submit a bug report for this issue and reply in here with the issue ID?
     
  3. jonathans42

    jonathans42

    Unity Technologies

    Joined:
    Jan 25, 2018
    Posts:
    514
    Can you paste an image of what you were seeing before (i.e. 2019.1) compared to now?

    Thanks,
     
  4. jonathans42

    jonathans42

    Unity Technologies

    Joined:
    Jan 25, 2018
    Posts:
    514
    Here's what I am seeing:

    upload_2019-3-21_14-15-45.png

    I'll run a bisection and see when the issue was introduced.
     
  5. CasperCoder

    CasperCoder

    Joined:
    Jul 29, 2012
    Posts:
    13
    Bug report submitted. My issue ID is: 1140241
     
    LeonhardP likes this.
  6. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,045