Sunday, September 25, 2022
HomeGame Developmentc# - digital void causes reminiscence leak and crashes unity

c# – digital void causes reminiscence leak and crashes unity


I am attempting to create a monobehaviour base class known as entity with a digital void known as course of, the code compiles superb however as soon as i add the script to a gameobject it frezees unity with a loading bar and after a couple of minutes of continually incrising the ram utilized by unity it reachs 100% and my laptop frezees.

I’ve examined and I am 100% positive it is the digital void inflicting the difficulty, as soon as i take away it i can add with no downside

Is that this a unity bug or am i lacking somthing?

utilizing Grid;
utilizing UnityEngine;

namespace Entities {

    public class Entity : MonoBehaviour {
        public GridCell place;
        
        public bool needsUserUpdate;

        public Entity() {
            BattleHandler.enemies.Add(this);
        }

        /// <abstract>
        /// Course of Entity Transfer
        /// </abstract>
        public digital void Course of() { }
    }
}

I am utilizing Unity 2021.3.10f1 LTS with a URP 3D mission

I haven’t got mutch extra data than this since this can be a newly created mission and that is all i’ve

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments