how to get last child of gameobject in unity

Code Example - how to get last child of gameobject in unity

                
                        lastChild = transform.GetChild(transform.childCount - 1);