void getHelpers()
    {
        vg = GetComponent <VerticalLayoutGroup>();
        if (vg == null)
        {
            hg = GetComponent <HorizontalLayoutGroup>();
        }
        vertical = (vg != null);
        if (!controlAll)
        {
            if (vertical)
            {
                elements = vg.getActiveElements();
            }
            else
            {
                elements = hg.getActiveElements();
            }
        }
        else
        {
            elements = GetComponentsInChildren <LayoutElement>();
        }
        helpers = new LayoutHelper[elements.Length];
        for (int i = 0; i < elements.Length; i++)
        {
            helpers[i] = elements[i].GetComponentInChildren <LayoutHelper>();
            //     if (helpers[i] == null)
//               Debug.Log(elements[i].name + " has no layout helper");
        }
        val = valSet;
    }