You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot disable the StatsComponent with StatsComponent.enabled = false;
To Reproduce
//...constactiveCamera=engine.sceneManager.activeScene._activeCameras[0].entity;let_statsComponent=null;window.addEventListener("message",(e)=>{consttype=e.data.type;if(type==='toggleStats'){if(!_statsComponent){_statsComponent=activeCamera.addComponent(Stats);}constvalue=e.data.value;if(value){_statsComponent.enabled=true;}else{// BUG: This code cannot disable the StatsComponent_statsComponent.enabled=false;}}});
Expected behavior
The StatsComponent should be disabled, as it does not adhere to the standard behavior of other components.
Desktop (please complete the following information):
Browser Chrome
Version 120
The text was updated successfully, but these errors were encountered:
Describe the bug
Cannot disable the StatsComponent with
StatsComponent.enabled = false;
To Reproduce
Expected behavior
The
StatsComponent
should be disabled, as it does not adhere to the standard behavior of other components.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: