I have this Scriptable Object class which I want to store diferent arrays of gameObjects, these gameObjects are prefabs with a mesh and an empty inside of it. when trying to assign, draging gives me the forbidden sign in my mouse pointer, and when I try to assign it lets me assign those prefabs but once I do it shows only Type mismath. the code for the scriptable Object is:
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
[CreateAssetMenu(fileName = "NewPathData", menuName = "PathData")]
public class PathData : ScriptableObject
{
[SerializeField] private GameObject[] pathObjects;
public GameObject[] GetPath()
{
return pathObjects;
}
}```