[CreateAssetMenu()] 3D Models, ScriptableObjects

Hey,

I have a problem with this code, the list is coming in the editor. But then im trying to put my 3D models in the list, will it not let me do it.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(menuName = "ScriptableObjects/BuildingTypeList")]
public class BuildingTypeListSO : ScriptableObject {

    public List<BuildingTypeListSO> buildingTypeList;

}

Its work fine with 2D sprites, but then im trying with 3D models it dosent work?

You can’t put 2D or 3D models into that list. You can only put in scriptable object instances of this exact type of scriptable object.

Do you perhaps mean to make line 8 above be:

public List<GameObject> buildingTypeList;

so you can drag prefabs into it?

Hey,

I have fix the problem by playing around with it, But thank you for the reply ;D