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

..."Cannot be accessed with an instance reference, qualify it with a type...

So I have a script called "GrowBerries" and I have it set up so I can harvest the berries, but when I try to run a non-static method in another script, I get this "Static member...

View Article


Adding audio not working (error: System::init or System:setDriver was not...

Hey, so I'm trying to add audio to my pistol when a bullet is fired, I've tried importing a .wav sound file I downloaded, and I get the error shown in the picture below, I've even tried exporting the...

View Article


Scene disappearing when zooming in Unity

When I make zoom in a scene in the Unity editor (Unity 4.6, but it happens in other versions too), the whole scene disappears (hides), so I'm forced to work within a range of zoom. Do you know this...

View Article

Shader dose not work in Unity4x

Hi Iv been working on my Game for 3 years now, and now I upgraded from Unity 3.5.7 to Unity 4.6.1 and my most used shader has gone dead, it dose not use any of its functions the slots are there but...

View Article

How can I spawn a bullet using PhotonNetwork.Instantiate()?

I am trying to spawn a bullet/projectile by using PhotonNetwork.Instantiate(). I have attached this code to the Main Camera: using UnityEngine; using System.Collections; public class Ability1 :...

View Article


Error putting an object into an Array

So I'm trying to put an Object into an Array for use later and I'm getting an error every time I try. Here's my code: var children : GameObject[]; var temp : GameObject; function Start () { children[0]...

View Article

How can I get bullets to change direction when using Photon.Instantiate()?

Here's the code thats giving me trouble: Gameobject clone = (Gameobject)PhotonNetwork.Instantiate("projectile", transform.position, transform.rotation); clone.rigidbody.velocity = Vector3.forward *...

View Article

How to access script from another script in an object?

So I am having trouble with getting some information in my game I am working on. Basically my player has a script called 'Stats', and it has allot of public static variables that I want my projectiles...

View Article


Failed to recompile android resource files.

I'm trying to get Google Play Services set up for my game, but when I build it it says, "Failed to recompile android resource files." Does anyone know how to fix this error? I have JDK 1.8.0_25...

View Article


Internal Compiler Error

So my game runs the way it should in unity. But when i build it i get this error Internal compiler error. See the console log for more information. output was: Unhandled Exception:...

View Article

Can I use the new GUI system with instantiated prefabs?

I am trying to create a health bar that is controlled by a script attached to the player. I made the slider with the new UI system and is in the scene. I also have a variable called public Slider...

View Article

I keep on getting this error : Internal compiler error. See the console log...

when i look into unitys editor it says this : -----CompilerOutput:-stdout--exitcode: -2147483645--compilationhadfailure: True--outfile: Temp/Assembly-UnityScript.dll...

View Article

C# Code errors

I am a little new to unity and very new to C# and I am making a 2d platformer game and this is my script to shoot. Im getting these errors 1. (30,20) Unexpected symbol 'else' 2. (31,41) Unexpected...

View Article


How to use a string as an int and in a for loop.

The error is on line 36: #pragma strict var myString : String = "5"; var myInt : int = parseInt(myString); var SpawnSpot : Transform; var spawnMonster; var choosingIsActive : boolean = true; var...

View Article

ArgumentOutOfRangeException when trying to create prefab torpedo shots (Bullets)

ArgumentOutOfRangeException: Argument is out of range. Parameter name: index System.Collections.Generic.List`1[UnityEngine.GameObject].get_Item (Int32 index) (at...

View Article


Utf-16 problems in the strangest of places

I'm getting strange crashes at times in our game (Running 4.3.7) in build. For example: ArgumentException: invalid utf-16 sequence at 4649196 (missing surrogate tail)..Parameter name: string -...

View Article

Array of Animator doesn't work, but individual does

I made the script work, but not the way I wanted, so I'll just pop a quick question because I've no idea Why it doesn't work the original way. I tried doing this... public GameObject[] obj; //I have 2...

View Article


Asset Store Doesn't work.

I opened up my unity and i went to the window asset store but everytime i open this window my unity doesn't respond (Windows task manager) for 2 min and after that my Asset store window is loaded up...

View Article

UnloadAsset can only be used on assets

i want to read one texture with sequence, my code is below: /// /// Dispaly image with a sequence loop. /// /// IEnumerator DisplayImage() { int count = imagepaths.Length; while (n < count) { WWW...

View Article

Cannot open scene /project or even find it.

The referenced script on this Behaviour is missing! But this is not the whole problem all my animators all my scripts animations are gone why has this happened I reinstalled unity after reinstalling...

View Article
Browsing all 7934 articles
Browse latest View live