Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
atkdefender opened this issue Nov 24, 2020 · 3 comments
Labels

Comments

@atkdefender
Copy link

atkdefender commented Nov 24, 2020

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

@atkdefender atkdefender changed the title Why Enable Visual Debugging = true, but my components is not showing in DontDestroyOnLoad? How to deal with "Enable Visual Debugging = true, but components is not showing in DontDestroyOnLoad"? Nov 26, 2020
Dethrail added a commit to Dethrail/Entitas-CSharp that referenced this issue Feb 3, 2022
Dethrail added a commit to Dethrail/Entitas-CSharp that referenced this issue Feb 3, 2022
@Dethrail
Copy link
Contributor

Dethrail commented Feb 3, 2022

@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

@sschmid sschmid added this to Entitas Sep 6, 2022
sschmid pushed a commit that referenced this issue Sep 7, 2022
@sschmid
Copy link
Owner

sschmid commented Sep 7, 2022

related #967

@sschmid sschmid closed this as completed Sep 7, 2022
@sschmid sschmid moved this to Done in Entitas Sep 7, 2022
sschmid pushed a commit that referenced this issue Sep 7, 2022
@mrobaczyk
Copy link
Contributor

mrobaczyk commented Sep 16, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

4 participants