Quantcast
Channel: Questions in topic: "missingreferenceexception"
Browsing index pages (208 articles)
↧

type or namespace name 'ProductCatalogItem' could not be found. I know that...

using System.Collections; using System.Collections.Generic; using UnityEngine; #if !NO_IAP && UNITY_PURCHASING && (UNITY_IOS || UNITY_ANDROID) using UnityEngine.Purchasing; #endif...

View Article


Trying to add a second player, but it won't move and deletes first player?

Currently working on a planting simulator game where I am trying to add a second player (P2). The first player (P1) works perfectly fine in the absence of P2, it moves, has an inventory, etc. Once I...

View Article


Missing GamObjects in Build / Scripts missing in Build,Objects missing in...

My 2D project is running perfectly fine in Editor but it acts and displays the scene erratically when Build. The **Build is missing GameObjects** and with them scripts that should be executed. Also...

View Article

The object of type GameObject has been destroyed but you are still trying to...

I am making a 3d game and i made it so whenever the player collides with a object tagged "walls". he gets turned off and the camera, you lose,text, and retry button get activated. but something kinda...

View Article

MissingReferenceException: The object of type 'SpriteRenderer' has been...

**Guys, an error is appearing here in my game that I can't solve:** *MissingReferenceException: The object of type 'SpriteRenderer' has been destroyed but you are still trying to access it. Your script...

View Article


How to fix a Missing Refrence Exception Error

Hi! I'm fairly new to coding and I have been working on expanding the RPG Creator Kit! I added in a menu system that gives you the option to change the volume, and an option to load the game. However,...

View Article

Terrain Tools, missing material bug in URP

**Hi, I am trying to use Terrain Tools with the universal render pipeline (URP), but as soon as I've installed it, it throws me this error message:** *MissingReferenceException: The object of type...

View Article

Why Player input aways get MissingReferenceException?

I started using PlayerInput yesterday but I've been having some problems like it regarding MissingReferenceException protected void Awake() { manager = GetComponent(); if(playerInput != null &&...

View Article


MissingReferenceException: The object of type 'Animator' has been destroyed...

I have an endless runner game and my player can respawn after wathing an ad. But after the player goes to the market page, or just tries again without reviving, unity gives the error...

View Article


MissingReferenceException even after checking if object is null

I have been learning Unity for a couple of weeks, and I am working on a prototype for a game. I am trying to add death effects for the traps in the game (sounds and particles), but also have them...

View Article

When the player dies and I reload the scene the enemies spawn script stops...

This is my first game and I'm trying to reset the game after player death, i already made the ui and all the functions but for some reason after the player dies and reloads the scene the enemy manager...

View Article

How to deal with a missing reference when an object referred each frame from...

##Context: In the *Start method*, I instantiate a flock of flying bugs and store them in a list called "agents". In the *Update method*, I iterate on each agent in the list to: 1) store their...

View Article

MissingReferenceException: The object of type 'GameObject' has been destroyed...

Hello everybody im currently new to developing games and i find errors saying MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it. Your...

View Article


MissingReferenceException:,MissingReferenceException

I am making a multiplayer FPS using Photon, but I always get a "MissingReferenceException: The object of type 'Camera' has been destroyed but you are still trying to access it." error when I try to...

View Article

Why I get Unity Ads Missing Reference error?

Hi Guys! I started to implement some ads into my game, and I have encountered with a strange but really annoying problem. The game show an Interstitial Ad when the player buy something. This works...

View Article


Button was destroyed but you are still trying to access it

So I implemented the Unity AD Button for playing a Reward-Video. They have a script for it and I copied it. You only need to implement the Reward the Player gets after watching an AD yourself. That...

View Article

Issues in my unity project,I have issues.

**Hi. How are you? Now I upgrade my unity project(2017.1.1f1) to Unity2018.1.0f1 version. But I got two issues. My project use this package. https://www.assetstore.unity3d.com/en/?stay#!/content/1 If...

View Article


Having a problems with GameObjects being destroyed after scene changes

I've been creating a 2D platformer with scene changes to move from room to room but I'm having massive troubles when changing a scene. Scoured online but I wasn't able to find a proper solution to...

View Article

Best practice handling deleted object refences during SceneManager.LoadScene

Hey guys, I've been getting NPEs when I call SceneManager.LoadScene because I have objects that are referenced after they have been deleted. This is the error I get: The object of type transform has...

View Article

Missing reference exception

So i'm making a game where if you touch an obstacle, you die(duh) heres my code on the death part void OnCollisionEnter(Collision collision) { if(collision.gameObject.tag == "o") { Debug.Log("hit");...

View Article
Browsing index pages (208 articles)


Latest Images