Hello,
I cannot assign my scriptable objects to the list.

Also, after launching Unity, they sometimes are empty, and script is set to “Mono”. What could be the issues?
Thanks!
Here is the code:
using UnityEngine;
[CreateAssetMenu(fileName = "xxx", menuName = "xxx")]
public class TypeAssetCreator : ScriptableObject
{
[SerializeField] private Sprite sprite;
[SerializeField] private Gradient gradient;
[SerializeField] private bool isDowngradable;
[SerializeField] private bool isUpgradable;
}
public List<TypeAssetCreator> typesList;
I think issue is exactly same as is stated in error. “File and class name must match”.
What is your filename of TypeAssetCreator .
1 Like