Unity giving me some c sharp errors, cs1061
Hello Unity community! I am getting a problem from a script that I am trying to switch over from unity 4 to 5 in the asset bundle "Simply A*". I am getting three errors, all of level cs1061. I have...
View ArticleWhere is this (-1) coming from in my change level script?
I have a script that changes from Level 1-1 to level 1-2 just fine. function OnTriggerEnter (other : Collider){ if(other.gameObject.tag == "Player"){ Application.LoadLevel("1-2"); } } But I have a...
View ArticleUpdate() can not be a coroutine
i get this error "Update() can not be a coroutine" this happens to me all the time how do i go about fixing this, here is my script; function Update() { if(Input.GetKeyDown("space")) yield...
View Article'UnityEngine.Component.GetComponent' is not a generic definition.
#pragma strict // ping-pong animate background color public var color1 = Color.red; public var color2 = Color.blue; public var duration = 3.0F; var camera; function Start() { camera = GetComponent.;...
View ArticleButton not executing function. C#
I have a button that i would like to call a specific math function with. I placed Debug.Log messages to test what was going on. It appears that The button is not even calling the function because when...
View ArticleCan't Play Animation
I have an Image-Sequence that i want to put in a Animation,i used Drag and Drop and i recreated it manually.Since i have no clue how to play an Animation via Animator Component (and didnt find...
View ArticleConsole Errors ...!!!
i am facing a problem in console that (COMPIlATION FAILED BEACAUSE THE COMPILER COULD NOT BE EXECUTED). can anyone tell me the what is the solution for this??? This error occurs when i assign a script...
View ArticleLegacy Animations and Unity 5 - What's The Deal?
Hey all, I'm really confused about the error I get saying I need to mark my animations as legacy… when I mark them as legacy I get another error saying Legacy Animation Clips are not allowed in...
View ArticleBuild failure: Failed to re-package resources. See the Console for details.
Build failure: Failed to re-package resources. See the Console for details. Trying to resolve above error. this error is coming while trying to make unity game build for android. for iOS work well....
View ArticleCache Server error - "failed to move file in place"?
Does anyone know what could cause the following Cache Server error message? PUT f63b58d16a6a5f49a86b98b2eeb89a02_20874242458b2082f6d2f4b04bd63cfe (size 2730455) Failed to move file in place...
View ArticleUnity Project wont build
I cant get Unity to build my project. At a certain point the progress bar just stops moving. I could leave it for hours and it still wouldn't work. Unity isn't freezing as I am able to click the cancel...
View ArticleWhy won't this work?
error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement...
View ArticleError in Code?
There is a bug in my code that says unexpected symbol pause? Can someone tell me why? Code: using UnityEngine; using System.Collections; public class PauseButton : MonoBehaviour { public Texture...
View Article"UnityEngine.AsyncOperation" is required to access not static member "progress"
Hi, I try make a load progress bar, but it does not work var Scene : String; var progres : float; function Start () { var op : AsyncOperation = Application.LoadLevelAsync(Scene);...
View ArticleBug Problem Please Help me :(
![alt text][1] [1]: http://i.hizliresim.com/rQVJzV.png Hi guys. We had big project. A survival game project. But Bug Error happened. I can't access my projects. It happens all the time. What we should...
View ArticleWhat is wrong with this script? "Assets/Spawn.cs(33,23): error CS1502: The...
using UnityEngine; using System.Collections; public class Spawn : MonoBehaviour { public GameObject[] spikes; public int amount; private Vector3 spawnPoint; void Update () { spikes =...
View ArticleChange gameobject sprite with button
Hi. Iam working on system, where button can change sprite render object. So i maked 2 scripts, first- #pragma strict public var sprajt: Sprite; function Update() { GetComponent(SpriteRenderer).sprite =...
View ArticleC# GetComponent()... Not finding script problem.
I'm pretty definite that the code is correct in the way it should be used, however in this specific problem, the Blur script which is an Image Effect (and is in the correct location of Standard...
View ArticleStrange Error: m_TriggerStayStates.find(pair)
I have an fbx object (my hero). When it colides with some cubs I receive this strange error: m_TriggerStayStates.find(pair) != m_TriggerStayStates.end() Here is my colider code: void...
View ArticleSwipe controls error "Cannot implicitly convert type 'UnityEngine.Touch' to...
I'm trying to make my character move up and down when the player swipes up and down on their mobile scree but I get the error in the title. Here's the code:`using UnityEngine; using System.Collections;...
View Article