Forum begins after the advertisement:


[Part 3] Null Reference Exception Errors

Home Forums Video Game Tutorial Series Creating a Farming RPG in Unity [Part 3] Null Reference Exception Errors

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11561
    Jonathan Teo
    Level 18
    Moderator
    Helpful?
    Up
    0
    ::

    NullReferenceException: Object reference not set to an instance of an object

    A NullReferenceException indicates that a variable that is supposed to be set is unset. Its most commonly a sign that something should be set on the Inspector properties of a particular GameObject, but isn’t.

    In this part, it is likely that something on the PlayerController component is not set in your Scene. You can have a look at line 49 of your PlayerController script to see which property that is.

    #11850
    Terence
    Level 30
    Keymaster
    Helpful?
    Up
    0
    ::

    Here’s a video covering NullReferenceExceptions in more detail:

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: