게임개발/게임 UI.UX 프로그래밍

인벤토리 그리드 만들기 2 오류 수정

pudding81 2024. 2. 25. 00:29

 

 

 

 

 

ScrollView 스크립트에서 

public void Refresh()
{
    //아이템을 모두 제거하고
    foreach (Transform child in this.content)
    {
        Destroy(child.gameObject);
    }

   // this.CreateCellView(); ---> 코드 수정해줌
    this.Init();

   // this.NoitemGo.SetActive(index == 0); ----> 삭제


}