[ad_1]
I’m making an attempt to create a monobehaviour base class referred to as entity with a digital void referred to 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 regularly incrising the ram utilized by unity it reachs 100% and my laptop frezees.
I’ve examined and I’m 100% certain it is the digital void inflicting the difficulty, as soon as i take away it i can add with no downside
Is 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>
/// Process Entity Move
/// </abstract>
public digital void Process() { }
}
}
I’m utilizing Unity 2021.3.10f1 LTS with a URP 3D undertaking
I haven’t got mutch extra data than this since it is a newly created undertaking and that is all i’ve
[ad_2]