Answer the question
In order to leave comments, you need to log in
Why does it return null when passing ScriptableObject through Inspector?
[private LevelProps props;
]
ScriptableObject
[CreateAssetMenu(fileName = "levelProps", menuName = "levelProps", order = 0)]
public class LevelProps : ScriptableObject
{
[SerializeField] public List<GameObject> planets;
[SerializeField] public List<GameObject> asteroids;
[SerializeField] public List<GameObject> massiveObjects;
[SerializeField] public List<GameObject> massiveObjectsWholes;
[SerializeField] public List<GameObject> stations;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question