sschmid / Entitas

Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
MIT License
7.08k stars 1.11k forks source link

Visual Debugging doesn't work #967

Open atkdefender opened 3 years ago

atkdefender commented 3 years ago

Open project Match-One, Add any MonoBehaviour, write "Contexts contexts = Contexts.sharedInstance;", Play the game, Then Entitas's debug contexts hided. Like this

public partial class Contexts : Entitas.IContexts {

    public static Contexts sharedInstance {
        get {
            if (_sharedInstance == null) {
                _sharedInstance = new Contexts();
            }

            return _sharedInstance;
        }
        set { _sharedInstance = value; }
    }

    static Contexts _sharedInstance;

Contexts contexts = Contexts.sharedInstance; //This line should only get the Contexts‘ singleton. Why a "get" matter? I have no idea.

sschmid commented 2 years ago

related #999