Exemplo n.º 1
0
    private void SwitchAllScroll(MonoFrame frame, bool enable)
    {
        var cpns = frame.GetComponentsInChildren <ScrollRect>();

        foreach (var item in cpns)
        {
            item.enabled = enable;
        }
    }
Exemplo n.º 2
0
    private void ResetAllScroll(MonoFrame frame)
    {
        var cpns = frame.GetComponentsInChildren <ScrollRect>();

        foreach (var item in cpns)
        {
            item.verticalNormalizedPosition = 1;
        }
    }