LayoutList.Update C# (CSharp) Method

Update() private method

private Update ( ) : void
return void
    void Update()
    {
        if (rect.sizeDelta.y != invNames.childCount * 40) { 	//May not want to use FindChild every time...
            rect.sizeDelta = new Vector2 (rect.sizeDelta.x, invNames.childCount * 40 + 20);
        }
    }
LayoutList