This is my inner function (a bit in my code )
leaderboardPanel.SetActive(false);
for (int i = listingContainer.childCount - 1; i >= 0; i--)
{
Destroy(listingContainer.GetChild(i).gameObject);
}
ErrorCS1061'GameObject' does not contain a definition for 'childCount' and no accessible extension method 'childCount' accepting a first argument of type 'GameObject' could be found (are you missing a using directive or an assembly reference?)Assembly-CSharpD:\unity projects\New Unity Project\Assets\Scripts 1\PlayFabController.cs231Active H