Scriptable Objects unassignable and sometimes empty

Hello,
I cannot assign my scriptable objects to the list.
8989723--1237654--upload_2023-5-3_18-23-40.png

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

You are right, thanks