Stop Unity from creating Assetfile on launch?

does anyone know how to stop unity from creating a ScriptableObject whenver i launch unity? not the actual game but just the program itself.

and for some reason Awake/OnEnable runs whenver u launch unity.

anyone know a solution?

private void OnEnable()
    {
        //Adds a temporary Type of monster, should be changed
        if (Monstertype.Count <= 0)
        {
            Monstertype.Add(MonsterData.MonsterTypeEnum.Ground);
        }
        //Adds a temporary Monster Magic Type, should be changed
        if (MagicType.Count <= 0)
        {
            MagicType.Add(MonsterData.MagicTypeEnum.Fire);
        }
        //Adds a temporary Type of Weakness, should be changed
        if (MonsterWeaknesse.Count <= 0)
        {
            MonsterWeaknesse.Add(MonsterData.MonsterWeakNessEnum.Cold);
        }
        //Adds a temporary Type of Strength, should be changed
        if (MonsterStrength.Count <= 0)
        {
            MonsterStrength.Add(MonsterData.MonsterStrongEnum.Fire);
        }
        EncyclopediaUpdate.MonsterEncyclopedia.Clear();
        EncyclopediaUpdate.MasterMonster.Clear();
        MonsterEncyclopedia asset = CreateInstance<MonsterEncyclopedia>();
        AssetDatabase.CreateAsset(asset, "Assets/Resources/EncyclopediaResources/MonsterEncyclopedia/New Monster.asset");
        AssetDatabase.SaveAssets();

        if (!EncyclopediaUpdate.MasterMonster.Contains(this))
        {
            EncyclopediaUpdate.MasterMonster.Add(this);
        }
        if (!EncyclopediaUpdate.MonsterEncyclopedia.Contains(asset))
        {
            EncyclopediaUpdate.MonsterEncyclopedia.Add(asset);
        }
    }

Maybe try this? Unity - Scripting API: Application.isPlaying

i solved my problem a few days ago :smile: found a different solution different to my first