I want a script that has a public array so that I can modify the values in the inspector. Here's an example script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Foo : MonoBehaviour
{
public int[] bars;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
When I add the script to a game object, I can see the empty list in the inspector (as expected).
But when I add elements to the array, the array area is just blank so I can't set the value of each element (or see what the element values are).
Is this just a bug, or am I doing something wrong?
I'm running Unity 2021.2.5f1 on macOS Monterey 12.0.1.

