Forum begins after the advertisement:

Save Soil

The Save Soil Movement

Poor farming practices and policies across the world have led to the degradation of agricultural soils in the world. This has led to the loss of nutritional value in our food over the years, and it will affect our food production capabilities in the coming decades.

Learn more about Save Soil →

[Part 3] Null Reference Exception Errors

  • 31 August 2023: We recently fixed a bug where our Patrons were not getting their titles displayed properly on their posts.

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
  • #11561
    Jonathan Teo

    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.


    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: