// activateHandler is called when the user clicks on the Settings item in the Settings window.
activateHandler=(searchContext,rootElement)=>
{
varwrapper=newVisualElement()
{
style=
{
marginBottom=2,
marginTop=2,
marginLeft=8,
marginRight=8,
flexDirection=FlexDirection.Column,
}
};
vartitle=newLabel()
{
text="Unity Atoms",
style=
{
fontSize=20,
marginBottom=12,
unityFontStyleAndWeight=FontStyle.Bold,
},
};
wrapper.Add(title);
varenableDebug=newToggle()
{
label="Debug mode",
value=DEBUG_MODE_PREF.Get(),
tooltip="Enables debug functionality in Unity Atoms, for example Stack Traces for Events. Performance will decrease using this option, but could be switched on for debugging purposes.",