Search Unity

not seen this error before, what is the M_Constant on the scroll rect option?

Discussion in 'Getting Started' started by Sylvir, Apr 21, 2015.

  1. Sylvir

    Sylvir

    Joined:
    Mar 21, 2015
    Posts:
    396
    UnassignedReferenceException: The variable m_Content of ScrollRect has not been assigned.

    this is the error i get, game runs.. but i cant seem to work out what the M_Constant is on my scrollRect so i can fix that.
     
  2. the_mr_matt

    the_mr_matt

    Joined:
    Jul 21, 2015
    Posts:
    54
    Yeah I have the same error, did you end up getting it solved?
     
  3. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    14,549
  4. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    664
    Hey what did you guys do to fix this?
     
  5. DavidRon

    DavidRon

    Joined:
    Dec 5, 2016
    Posts:
    1
    I had the same error.
    I had added a ScrollView and removed the original Content-gameobject and added my own, which caused the m_Content variable of ScrollRect to not be set.
    Solved by setting the Content variable in the inspector to my new contect-gameobject.
     
    MehdiKhadir and Bill_Martini like this.
  6. Arpit8081

    Arpit8081

    Joined:
    Jul 23, 2019
    Posts:
    1
    Remove Scrollbar(script).