unneeded BCE0023
I'm trying to do an AddForceAtPosition, but it returns the BCE0023 error. Here is my code: if (Physics.Raycast (transform.position, -Vector3.forward, hit)){...
View ArticleHow to make sense of error message?
I have an error and i got this error message : ArgumentOutOfRangeException: Argument is out of range. Parameter name: index System.Collections.Generic.List`1[UnityEngine.Vector3].get_Item (Int32 index)...
View ArticleCalling function from other script gives an error
Hey, i have this code in my script ParticleSystem gunParticles; void Awake () { gunParticles = GetComponent (); } public void Shoot () { gunParticles.Stop (); gunParticles.Play (); } } But now in my...
View ArticleWhy do I keep getting this error? : Static member...
using UnityEngine; using System.Collections; public class Actions2 : MonoBehaviour { float distanceToItem; GameObject Player; public GameObject Crate; public void Awake(){ } // Use this for...
View ArticleI getting an error CS018
Error Message : Assets/Plugins/Editor/Control-Freak-Editor/TouchControllerCodeTemplateGenerator.cs(67,22): warning CS0618: `UnityEditor.EditorWindow.title' is obsolete: `Use titleContent instead (it...
View ArticleScript errors
I don't see why I'm getting these script errors PlayerControl.cs(219,37): error CS1519: Unexpected symbol `;' in class, struct, or interface member declaration PlayerControl.cs(221,24): error CS1519:...
View ArticleAssets/BallControl.js(17,55): BCE0034: Expressions in statements must only be...
]! [1]: /storage/temp/64709-capture.png Hey can u plzz help me solve this After many random tries this is what i have (Sorry im a BEGINNER) Im reffering Brackey's How To Make A Game in the video he...
View ArticleSocket: bind failed, error
I am having the error: "Socket: bind failed, error: An attempt was made to access a socket in a way forbidden by its access permissions. (0)" on startup. I see a few people posting about a similar...
View ArticleUnassignedReferenceException: The variable closest of TAKE has not been...
the codse that doesn't work, are after the line **else** of the function **OnTriggerStay**, witch are: closest.transform.parent = null; closest.GetComponent.().useGravity = true; if I delete those two...
View ArticleError initializing license system
I have just started to unity and it this is the error it gives me when i try to launch it anyone have any idea what is going on?
View ArticleI get this error CS1031: Type expected pls help!!
using UnityEngine; using System.Collections; public class NewBehaviourScript : MonoBehaviour public float moveSpeed; public float jumpHeight; // Use this for initialization void Start() { // Update is...
View ArticleCan't upload skin/t-shirt to the Steam Workshop (Rust SDK, on Mac)
I am getting two error messages that shows frequently, the first, *FileNotFoundException: /Users/lukashjernquist/Library/Application Support/Steam/SteamApps/common/RustSDK/RustSDK/Assets/bundle does...
View Article(20,2): error CS8025: Parsing error
this is the code i'm using its c# bty *code* *using UnityEngine; using System.Collections; public class mainmenu : MonoBehaviour { public Texture backroundtexture; void onGUI(){ //display our backround...
View Articleerror CS0117: `UnityEngine.GUILayout' does not contain a definition for `label'
Just donw know what do do to fix it. The script goes like this: using UnityEngine; using System.Collections; public class TestGui : MonoBehaviour { private BaseCharacterClass class1 = new...
View ArticleDestroy a Prefab from an Array? (C#)
Hey you, yeah you my friend! I have a problem with my (C#) code, I'm trying to delete a random prefab created by an array. I instantiate a random prefab and it spawns out in the scene, the prefab is...
View ArticleImport package error (ARToolKit)
I need to use ARToolKit for a project I'm working on for school and I keep getting this error while trying to import the package: "Package corrupted, deduced GUID exists but at different destination...
View ArticleWhen enemy dies the script loses object reference.
So I'm working on a little FPS and right now I have one enemy. When I kill that enemy it says "Object reference not set to an instance of the object. This is the area of code that the error is...
View ArticleBuildAssetBundles() error: An abnormal situation has occurred: the PlayerLoop...
I'm trying to update my code to use the new method to create AssetBundles. Unfortunately by script I'm not having success. private IEnumerator BuildAssetBundleNew() { string[] assetPaths =...
View ArticleInvalid Expression Term 'Else'
For some reason or another the second 'else' in this void is throwing out an exception. None of the normal things that would cause this seem to be present (no semicolons on the end of an if statement...
View Article