Entitas icon indicating copy to clipboard operation
Entitas copied to clipboard

How to deal with "Enable Visual Debugging = true, but components is not showing in DontDestroyOnLoad"?

Open atkdefender opened this issue 4 years ago • 1 comments

https://github.com/atkdefender/Pic/blob/main/pic20201124122017.jpg

atkdefender avatar Nov 24 '20 04:11 atkdefender

@atkdefender

I think problem was because you had trouble when registering all context observers

Solution only one, get some report via adding log in catch section at Contexts

e.g. } catch(System.Exception e) {Debug.LogError(e);}

After u got a report you can handle problem

Dethrail avatar Feb 03 '22 20:02 Dethrail

related #967

sschmid avatar Sep 07 '22 09:09 sschmid

After adding these Debug.LogErrors and also in Entitas/Sources/Generated/Contexts.cs in the InitializeContextObservers() method I'm getting the following exception:

UnityEngine.UnityException: get_isPlaying is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead. Called from MonoBehaviour 'SceneLoader' on game object 'SceneLoader'.
See "Script Serialization" page in the Unity Manual for further details.

mrobaczyk avatar Sep 16 '22 14:09 mrobaczyk