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 ArticleCoroutine 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 ArticleUnable 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 ArticleAndroid 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 ArticleI 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 ArticleAPK 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 ArticleCannot 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 ArticleCamera.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 ArticleReflections 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 ArticleHow 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 ArticleThe 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 ArticleStrange 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 ArticleHow 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 ArticleA 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 ArticleAssets/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 ArticleI 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 Articlehow 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 ArticleI 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 ArticleTime.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