Quantcast
Channel: Questions in topic: "error"
Browsing all 7934 articles
Browse latest View live

IAP error NullReferenceException: Object reference not set to an instance of...

using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.Purchasing; public class IapManager : MonoBehaviour, IStoreListener { public static IapManager Instance { set; get;...

View Article


Unity VR Samples project doesn't work after build

The scene runs fine in the unity project window but after it's built, it then crashes with the following error: Unity Player [version: Unity 5.6.0f3_497a0f351392] VR Test.exe caused an Access Violation...

View Article


Why is it that when I added a C sharp script to a game object, the game...

So I am making a Mario game using 2D on Unity. I am trying to make a fireball weapon. I made a script for it and I placed the script on the fireball sprite that is on my scene. When I do that, I can...

View Article

Problem when Getting a component from a non Mono Behavior class.

I am sort of new to Unity and I ran into this problem when trying to create an animator script to work with the RigidbodyFirstPersonController script in Unity standard assets.This involves getting...

View Article

how to fix cs1014 error

hello i started with small project but at first 10 mins when i finsished script i didnt work. Here is my script can you tell me whats wrong what i should fix private Rigidbody rb { rb = GetComponent()...

View Article


ArgumentOutOfRangeException: Argument is out of range error when used with...

In one one of my scripts, there is a 2D array that is iterated through every `FixedUpdate()`. Another script creates the nested elements. Every time though, I get an error that says...

View Article

i have some problem with this, any solution? thanks

using UnityEngine; using UnityEngine.Networking; [RequireComponent(typeof(Player))] public class PlayerSetup : NetworkBehaviour { [SerializeField] Behaviour[] componentsToDisable; [SerializeField]...

View Article

Built project, now scripts are missing.

Hi, I recently finished an incredibly early version of a game I've been working on, so that I had a demo to submit. The demo works fine, unfortunately when I opened up Unity to edit it, there was 10...

View Article


Exception: Il2cp did not run properly.

Hi guys, I'm just upgraded to U5.6 and build my project using Il2cp but got this ex. Exception: E:\Unity\Editor\Data\il2cpp/build/il2cpp.exe did not run properly!...

View Article


Loading Screen with SceneManager.LoadSceneAsync

Unity 5.6.0f3 void Start(){ //StartCoroutine(LoadingScreenEnum()); If I use this it ignores async.allowSceneActivation = false //button.onClick.Invoke(); this also ignores async.allowSceneActivation }...

View Article

Small error C#

Hello I have been trying to get the following code to work but i have been getting this error Assets/BreakingGlass.cs(17,4): error CS0103: The name go does not exist in the current context I have no...

View Article

object reference not set to an instance of an object

I am getting a object reference error and I don't know exactly where I am getting it. I know my code could be done way shorter, but I wanted to make it as clear as possible what I am doing. The error...

View Article

MonoDevelop Wont Open

On my Windows 10 laptop when I want to edit a script I just created. I double-click on the script and it wont open but it has the loading arrow. I have tried to completely remove Unity and reinstall it...

View Article


Json parsing error Unity 5.6

Hi everyone! I upgraded my project to unity 5.6 and the json parsing function doesn't seem to work anymore: I get the following error: > InvalidCastException: Cannot cast from> source type to...

View Article

Coroutine stops spontaneously

Working on my project in unity I found out that coroutine from the sample gets interrupted on random iterations of for loop sometimes. In console there are no errors at that. The Coroutine is called...

View Article


Unable to list target platforms. Please make sure the android sdk path is...

**This is where my SDK "C:/Users/Win10/AppData/Local/Android/sdk"** **More detail in console** C:\Program Files\Java\jdk1.8.0_131\bin\java.exe -Xmx1024M...

View Article

Player Respawn Problem, Bullets dont move! [C#]

Hi I have aproblem! Everytime my player respawns and tries to shoot, the bullets dont move, they appear in position 0, 0, 0. What im doing wrong? Also Sorry for the bad english. Here’s the code im...

View Article


What am I doing wrong?

Hi, I'm very new to unity and I've been following a YouTube tutorial series. I tried to follow his instructions best I can. However when I try to use it I get an error message. Could anybody read...

View Article

Please help! Public Void unexpected, school project!

using UnityEngine; using System.Collections; using UnityEngine.UI; public class uiManager : MonoBehaviour { public Button[] buttons; public Text scoreText; bool gameOver; int score; // Use this for...

View Article

C# Scripts Error

Hi guys, I just downloaded Unity 5.6 and whenever I create a C# Script I get an error, even if I didn't edit it. ![alt text][1] ![alt text][2] [1]: /storage/temp/94131-with-c-script.png [2]:...

View Article
Browsing all 7934 articles
Browse latest View live


Latest Images

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