How to turn checked in CheckboxGroup on with js

so with the document I found that
you can use
var mychecker = new BABYLON.GUI.checkbox()
then mychecker .isChecked = true/false

and then there is a nice new BABYLON.GUI.CheckboxGroup("Visulizer");
with transformGroup.addCheckbox("Show Labels", func);

But I cant find any information for fetch the real ‘checkbox’ item

Hello :slight_smile:

If you want to set the default state, the method addCheckbox has a third boolean param checked for that

If you want to access later on, you can try this :

checkBoxGroup.selectors[0].children[0].isChecked = true;

:arrow_right: sets to true the first checkbox

++
Tricotou

2 Likes

Thanks!!!