Question by
guicobata · Jul 16, 2020 at 06:04 PM ·
scripting probleminspectorbug-perhaps
GameObject array not showing on the inspector
Here's a sample of my code, very simple.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Inventory : MonoBehaviour
{
public GameObject[] gameobj;
public bool[] isNull;
}
The bool Array shows on the inspector, but the GameObject does not.
error-unity.png
(7.4 kB)
Comment
can you create a new script and try to replicate the issue? algo, could you use the [SerializeField] label too in case it is not getting serialize in the inspector?