Rotate Issue
I'm instantiating a game object and want to move and rotate it according to the player. If I only set the rotations equal to each other it works, however I need to rotate the z axis an additional 90...
View ArticleSmall line appearing under my 2D pixel sprite - 2D Graphics not rendering...
I am relatively new to unity and i couldn't find an answer to this. OK, so this is the problem. I had imported a sprite into the scene and i attached a movement script to it and tried to move around....
View ArticleBooleans are "asssigned but never used"???
So I am trying to create a boolean that judges wether or not the player is in a box collider. Although, it dosent work because the booleans have this error message: "the variable "hitbox" is assigned...
View ArticleThe type or namespace name `Unity' does not exist in the namespace...
I'm developing a moblie app, and I get this error: The type or namespace name "Unity" does not exist in the namespace "UnityEditor.Facebook" ![alt text][1] ![alt text][2] What can I do to fix this?...
View ArticleFirst person controller not working when uploaded to web
I am having an issue with a game I am trying to upload to the internet. I am new at Unity and I don't really know how to fix this. I uploaded the game with WebGL under "build and run", and whenever I...
View ArticleIf statement being ignored (Apparently)
Well i already know i am missing something basic here, but as i can't find the problem i decided to ask. I am trying to make a simple airship controller script that can fit in any model, and it's...
View ArticleUnity crashes on start up
what should i do when it keeps crashing when i start unity 5.6. by pressing and holding '**Alt**' while starting unity is not working and **Editor.log** file is also not helpful. so if please any body...
View ArticleMaterial rendering problem
Hi, I recently changed my computer and downloaded again Unity 5.6. The editor was a bit laggy but I solved it by using *"-force-opengl"*. But when I try to create a cube, something strange happens with...
View ArticleHelp! i have warning message "OnRenderImage() possibly didn't write anything...
[1]: /storage/temp/93205-sketch3.png using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(Camera))] public class BlackHole : MonoBehaviour { //public...
View ArticleHow to fix such an error?
ERROR: Unable to find dependency com.google.android.gms:play-services-ads-lite:[10.2.4] in paths ($SDK\extras\android\m2repository, $SDK\extras\google\m2repository, $SDK\extras\android\m2repository,...
View ArticleError exporting to html5
Hello people, I was trying to export my project to html5 when Unity says these errors and I could not export: ![Erro][1] [1]: https://s1.postimg.org/89uzqwipr/2017-04-30_3.png Does anyone have a...
View ArticlePhysics.Overlapsphere giving me a null reference exception
Hi guys I need to fix this ASAP and I have no Idea where I'm going wrong would really appreciate the help <3 public class Grenade : MonoBehaviour { public float fusetime = 1.0f; public int Damage =...
View ArticleNullReferenceException: Object reference not set to an instance of an object
I have come across a lot of people that have had this error, however I haven't been able to fix the error myself. I am simply trying to have an enemy collider deal damage to my player. Player: public...
View ArticleError Code CS0118 or CS0120
I have a pick up items script and I get error code CS0120. This is my PickUp script (the error code is at line 35): using UnityEngine; using System.Collections; using CameraRayCastLine; namespace...
View ArticleUnity Editor not working after project creation/selection
Hi, I have Unity 5.6 installed, but since yesterday it won't open project anymore. I can select a project or create a new one, but the project won't open. I've tried uninstalling and installing it...
View ArticleGameObject[] doesn't have a definition for transform/name/etc...
I have a pick up script that has GameObject[] for the code FindGameObjectsWithTag. This is my script: using UnityEngine; using System.Collections; using CameraRayCastLine; using PickUpSphereCast;...
View ArticleUnityEngine.Camera.get_projectionMatrix, game not receiving input because of...
NullReferenceException at (wrapper managed-to-native) UnityEngine.Camera:INTERNAL_get_projectionMatrix (UnityEngine.Matrix4x4&) at UnityEngine.Camera.get_projectionMatrix () [0x00000] in :0...
View ArticleUnity crashes on destroying a massive amount of objects
Hi, I'm having a big problem with objects destroying. I've got a space game, you can fly with your space ship around the limited space and there is also a few enemies. All ships are modular, so they...
View ArticleHow to use tags TextMesh in script?
go.GetComponent ().richText = true; go.GetComponent ().text = ""; Parser Error: Unexpected symbol '<' How to do it in script?
View ArticleCreateInstanceFromType is not allowed to be called during serialization
Hi! I am learning the serialization in Unity. I read [this][1] article and such error is presented. The full error description is: *CreateInstanceFromType is not allowed to be called during...
View Article