Search Unity

Resolved Inspector Foldout Menu not expanding properly

Discussion in 'Editor & General Support' started by parkerhomeross, Jun 30, 2022.

  1. parkerhomeross

    parkerhomeross

    Joined:
    Jun 29, 2022
    Posts:
    2
    For my project I am using an inspector foldout menu to view and alter the values of noise layers contained in a list. However, the first noise layer, or the first item in the list, does not expand properly. It does not push the other items down, and instead overlaps inside of them. This makes it so I cannot change that layer's values as they are covered by the other layers in the list.

    upload_2022-6-30_12-28-46.png

    I have both increased the size of the list and made it such that there is only one layer in the list, and the problem only occurs for the first item in the list. I have also tried this in Unity 2020.3.36f1 version, and the issue appears there as well.

    This is the code for the objects inside the list:

    Code (CSharp):
    1. [CreateAssetMenu()]
    2. public class ShapeSettings : ScriptableObject {
    3.  
    4.     public float planetRadius = 1;
    5.     public NoiseLayer[] noiseLayers;
    6.  
    7.     [System.Serializable]
    8.     public class NoiseLayer
    9.     {
    10.         public bool enabled = true;
    11.         public bool useFirstLayerAsMask;
    12.         public NoiseSettings noiseSettings;
    13.     }
    14. }
    I am unsure if this is simply an issue with my code, or if this is an issue with Unity. Any feedback would be appreciated, thanks in advance!
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,697
    parkerhomeross likes this.
  3. parkerhomeross

    parkerhomeross

    Joined:
    Jun 29, 2022
    Posts:
    2
    Thank you for the link to the other posts!
    I updated my project to 2021.3.5f1 from 2021.3.4f1 and it's working perfectly now!
     
    Kurt-Dekker likes this.