Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Object reference not set to an instance of an object

$
0
0
So i'm following this tutorial around minute 50
But I keep getting the same error:

NullReferenceException: Object reference not set to an instance of an object
Player.FixedUpdate () (at Assets/Player.cs:31)

Code (CSharp):
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Player : MonoBehaviour
  6. {
  7.     private BoxCollider2D boxCollider;
  8.     private Vector3 moveDelta;
  9.     private RaycastHit2D hit;
  10.  
  11.     private void...
Object reference not set to an instance of an object

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>