Error CS1502, CS1503, and CS1061. Please help
I need help get rid of this errors regarding the mapSize using UnityEngine; using System.Collections; using UnityEditor; [CustomEditor(typeof(TileMap))] public class TileMapEditor : Editor { public...
View ArticleScript Error: OnCollisionEnter2D
Hello, I'm having the weirdest problem in Unity 5.4.1f1 I have a 2 2D sprite which fall one onto another. Both have Rigidbody 2D & Box Collider 2D. On of them has the following script attached:...
View ArticleField jump.rb is never assigned to, and will all ways have its defualt value...
I don't know what im doing wrong and aparently you get this error when you don't use the variable but im using it multiple times in my script. using UnityEngine; using System.Collections; public class...
View ArticleChanging parent after deactivation error?
For my resource management, I'm trying to return my resources to a parent object upon deactivation, like so: void OnDisable() { transform.SetParent(obj.transform); } Everything seems to run as...
View Articlehow do i fix: NullReferenceException: Object reference not set to an instance...
![alt text][1] [1]: /storage/temp/82314-capture.png i got this error when i was typing up a script to randomly generate a city and i got this specific line came up after i clicked on the error...
View ArticleNullReferenceException: Object reference not set to an instance of an object
I am trying to make an enemy movement script for my tower defence game but i keep getting this error and my enemy is not moving NullReferenceException: Object reference not set to an instance of an...
View ArticleError CS9025 Parsing error
Hey I have been making a prison game learning with udemy and I've come across a parsing error, Here's the script: using UnityEngine; using UnityEngine.UI; using System.Collections; public class...
View ArticleThe Black Smith errors
i downloaded the black smith environment from the asset store but it says that there's errors like cs0234 in two places in particlescenecontrol script and the atmosphericscatteringdefered script so...
View ArticleSome objects were not cleaned up when closing the scene
Hi, I get the following error when I exit my application in the Editor: *Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?)* I know there have been...
View Article(C#) Stack overflow caused by unknown operation
Hi. My editor keeps crashing because of a stack overflow. The error message is as follows: ![alt text][1] [1]: /storage/temp/82643-unityso.png I can't seem to find an infinite loop in my code and i'm...
View ArticleError when setting Rotation
Hi, I get an error message, which i do not really understand. Screenshots here: https://gyazo.com/935810c34b81ecb0cada8f438a979316 https://gyazo.com/fbfe7ced30a317067c490b9060b62609 "Cannon" is a...
View ArticleHelp me have multiple mistakes
Assets/Enemy.cs(19,27): error CS0019: Operator `+' cannot be applied to operands of type `UnityEngine.Vector3' and `float' Assets/Enemy.cs(19,64): error CS0023: The `+' operator cannot be applied to...
View ArticleGetting Facebook Invite Problem
Getting Error in Facebook Invite in unity : __NullReferenceException: Facebook object is not yet loaded. Did you call FB.Init()? FB.get_FacebookImpl () (at Assets/Facebook/Scripts/FB.cs:28) FB.Login...
View ArticleTyping anything anywhere in script ceases all functions?
*(issue on Unity 4.3.2f1)* As you may know, in monodevelop 4.0.1 just under the tabs there is a bar that states the name of the script and (as it seems) what you're modifying e.g. **[C]** playerScript...
View Articleerror CS1525: Unexpected symbol '
so I was making my first game and I came across this bug using UnityEngine; using System.Collections; public class UpgradeManager : MonoBehaviour { public Click1 click; public UnityEngine.UI.Text...
View ArticleHelp with errors
Hello, I have just started using Unity today and am following a tutorial to create a starfield. Originally I got a ton of errors but have managed to get them down to 2. I can't for the life of me fix...
View Articlehow do i fix the compiler errors on unity 5? i have tried everything there is...
here are the errors 1. There are inconsistent line endings in the 'Assets/CScripts/movement.cs' script. Some are Mac OS X (UNIX) and some are Windows. This might lead to incorrect line numbers in...
View ArticleBCE0019: 'active' is not a member of 'SniperScarenewScript'.
I got this error in unity > Assets/Resources/NewScripts/WeaponManager.js(163,37): BCE0019: 'active' is not a member of 'SniperScarenewScript'. Here's my code ---------- //for sniper2005 if...
View ArticleWhat the heck is this?
It doesn't look like any error I've ever seen. ![Error][1] [1]: /storage/temp/83479-capture27.png It's stopped now, but it would be great to know what it is.
View ArticleWhat happen if you get an error while playing
I know this is a quick and dumb question, but i would like to know what happens if you build your game, open it, and then you get an error. For an example, i get "null reference something", how will it...
View Article