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 disable a system in runtime #58

Closed
liuhaopen opened this issue Sep 13, 2018 · 2 comments
Closed

how to disable a system in runtime #58

liuhaopen opened this issue Sep 13, 2018 · 2 comments

Comments

@liuhaopen
Copy link

I have two systems that control the same components, and I only need one of them to be enabled at the same time.

@EIZENHORN91
Copy link

World.Active.GetOrCreateManager().Enabled = false;

@liuhaopen
Copy link
Author

liuhaopen commented Nov 21, 2018

thanks for answer, it works! the complete code is :
World.Active.GetOrCreateManager<system that needs to be disable>().Enabled = false;
text inside <> will be hide, I use \< text\>

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

No branches or pull requests

3 participants