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

Failed to inspect System execution duration #942

Closed optimisez closed 4 years ago

optimisez commented 4 years ago

When select system to inspect execution duration, it will throw the following error and execution duration didn't update. Unity 2019.3.13f1.

KeyNotFoundException: The given key was not present in the dictionary.
System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <437ba245d8404784b9fbab9b439ac908>:0)
DesperateDevs.Serialization.Properties.get_Item (System.String key) (at <4ffa71e412304d91aaba2f740ebcbb6f>:0)
DesperateDevs.Serialization.Preferences.get_Item (System.String key) (at <4ffa71e412304d91aaba2f740ebcbb6f>:0)
Entitas.VisualDebugging.Unity.Editor.VisualDebuggingConfig.get_systemWarningThreshold () (at <67872ecda0424e09adcde3cfef7ad8d6>:0)
Entitas.VisualDebugging.Unity.Editor.DebugSystemsInspector.OnEnable () (at <67872ecda0424e09adcde3cfef7ad8d6>:0)

image

sschmid commented 4 years ago

Looks like you don't have a complete Entitas.properties

Mine looks like this

Entitas.properties (in root folder, like Jenny.properties)

Entitas.VisualDebugging.Unity.Editor.SystemWarningThreshold = 5
Entitas.VisualDebugging.Unity.Editor.DefaultInstanceCreatorFolderPath = Assets/Editor/DefaultInstanceCreator
Entitas.VisualDebugging.Unity.Editor.TypeDrawerFolderPath = Assets/Editor/TypeDrawer
sschmid commented 4 years ago

Opening the Entitas Preferences should automatically create this file for you