Enable /disable ALL (Tutorial)
hi guys i made a simple script that save time and a lots of coding
some times you need to enable or disable a lot of thing then you start using many times behavior script or coding one by one
this script will allow you to save that all
simply change the value true (to enable all) or false (to disable all).
// -----JS CODE-----
// @input SceneObject[] obj
for (var i = 0;i < script.obj.length; i++)
{
script.obj[i].enabled = false ;
}
i hope that help .