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. Dismiss Notice

Question Reorderable arrays in 2021 beta

Discussion in 'UI Toolkit' started by Nexer8, Feb 9, 2021.

  1. Nexer8

    Nexer8

    Joined:
    Dec 10, 2017
    Posts:
    271
    Currently I have 2021.1.0b1 downloaded, but my array property fields are still not reorderable. Is this feature intended for a later beta or is this a bug?
     
    oscarAbraham likes this.
  2. alexandred_unity

    alexandred_unity

    Unity Technologies

    Joined:
    Dec 12, 2018
    Posts:
    43
    Hi, how do you create your "array property fields"? Could you provide us some code and more context?
     
  3. Nexer8

    Nexer8

    Joined:
    Dec 10, 2017
    Posts:
    271
    I have a list (but I tried with arrays too) and I draw it using new PropertyField("myArrayName");
    Code (CSharp):
    1. root.Add(new PropertyField(serializedObject.FindProperty("myArray")));
     
  4. Nexer8

    Nexer8

    Joined:
    Dec 10, 2017
    Posts:
    271
    Also related, how do you make an array field that is not a property field?
     
    Xarbrough likes this.
  5. Nexer8

    Nexer8

    Joined:
    Dec 10, 2017
    Posts:
    271