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

error CS0120: An object reference is required to access non-static member...

I am trying to access another variable from another script by the following code, and I get the above error message ***My Continue script*** using UnityEngine; using System.Collections; using...

View Article


Coroutine couldn't be started because the the game object 'Spawn' is inactive!

I am trying to `Instantiate` a new "Player" after it dies. But can't start a Coroutine. All objects are active I don't understand where from this error came. Here is the code: Part where "Player" takes...

View Article


(This is in C#, and I am a newbie.) I am trying to get my sphere to move with...

using System.Collections; using System.Collections.Generic; using UnityEngine; public class ArrowKeys : MonoBehaviour { } void Start () { } // Update is called once per frame void Update () { { if...

View Article

Unable to open Assets/xxx/xxx/xxx.unitypackage: Check external application...

I'm trying to open a unity package within unity and this message shows up. It is a guns package from http://devassets.com/

View Article

Android Unable to merge android manifest Error

Hello I'm Korean high school student's. I finish making games, but I can't build project Because of merge android manifest Error. I'm not expert programmer, and Korean internet cafe do not solve this...

View Article


I have error with vector3. What I should do?

My code to go some place is here: transform.position = new Vector3(0, 1.78, 0); my error is Assets/a.cs(74,26): error CS1502: The best overloaded method match for `UnityEngine.Vector3.Vector3(float,...

View Article

APK Can't be open in Android system microphone

can see the unity logo when open the apk first ,then dark screen,and shut down; i debug in Andriod studio, ![alt text][1] [1]: /storage/temp/89502-debugerror.png it said can't find...

View Article

Cannot import videos

I think that I have imported an mp4 file before but now when I try to import a video it give me "Movie import error." I think that I already have downloaded Quicktime player.

View Article


Camera.current.Render() renders AND makes a NullReferenceException error

I've been trying to solve this problem for three days now. I need to re-render my scene while a certain function is running, before Unity would normally render it, to show how that function is...

View Article


Reflections error please help!!!

Hi I need help with a problem with Reflections that i've come through and I cant solve it. ![alt text][1] [1]: /storage/temp/89744-reflections.png As seen in the photo the material is "damaged" and on...

View Article

How to Fix: "Problem Validating Your License"

Hi! I haven't been onto unity for a while, and so when I recently attempted to open unity this image appeared. Is there any way to fix it? I have already tried uninstalling and reinstalling multiple...

View Article

The name 'GM' does not exist in the current context

GM.cs Script: using System.Collections; using UnityEngine; public class GM : MonoBehaviour { public static float vertVel = 0; void Start () { } void Update () { } } MoveCam.cs Script[error on...

View Article

Strange error i dont understand because i am a child

I have no idea what is wrong. Please help meh. using UnityEngine; using System.Collections; using System; public class PlayerHealth : MonoBehaviour { private int Playerhealth = 3; // This string holds...

View Article


How do i make a simple grappling hook?

I want to make a simple grappling hook (right mouse to fire, 1 to reel in, 2 to reel out, C#). I found this: [link][1] but the script gives me an error (well, four) saying x, y and z don't exist and...

View Article

A namespace cannot directly contain mambers such as fields or methods...

I get this error, if i type in `private Rigidbody rb;` and i really don't know what the problem is. i already did this in other scripts and it worked every time. Error Code: CS0116 PS.: it's a C# projekt

View Article


Assets/Script/PlayerController.cs(22,3): error CS1525: Unexpected symbol `rb'

I am following a tutorial and i have followed it to a "t" but this is the error i am getting ***Assets/Script/PlayerController.cs(22,3): error CS1525: Unexpected symbol `rb'*** This is my current...

View Article

I am trying to offset camera x distance from player all the time. Even if the...

using UnityEngine; public class MoveCam : MonoBehaviour { public GameObject Sphere; public GameObject Camera; public float xOffset = 1; public float yOffset = 1; public float zOffset = 1; void Start ()...

View Article


how to fix the socket exception error in unity using sql server express 2014?

hi, first of all thank everyone for the help, and sorry if my English is not very good. I am doing a project in unity. I made a database with sql server express 2014 and it is working fine in visual...

View Article

I am trying to offset the camera from the player at all times even if the...

The camera just positions itself right in front of the player. like 1st person. But I want it behind the player. no matter what value i change for the x, y, z it stays in the same place. using...

View Article

Time.deltatime not working.

I am trying to change players y velocity using deltatime. but when I press the jump key it doesn't jump. The jump key is assigned to a key. if((Input.GetKeyDown(jump)) && (isAirBorn == false))...

View Article
Browsing all 7934 articles
Browse latest View live


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