Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

problems creating a UI Shop following Unity Tutorial

Discussion in 'UGUI & TextMesh Pro' started by victorML, Jun 15, 2018.

  1. victorML

    victorML

    Joined:
    Jul 5, 2017
    Posts:
    38
    Hi, my name is Víctor and I'm having problems creating a Shop following this tutorial:
    Shop Tutorial

    I followed it step by step until the video number 7 but now I'm getting this error:

    NullReferenceException: Object reference not set to an instance of an object
    sampleButton.Setup (.Item currentItem, .shopScrollList currentScrollList) (at Assets/sampleButton.cs:18)
    shopScrollList.AddButtons () (at Assets/shopScrollList.cs:37)
    shopScrollList.RefreshDisplay () (at Assets/shopScrollList.cs:27)
    shopScrollList.Start () (at Assets/shopScrollList.cs:22)

    Someone could help me please ? I cannot find where is the problem.