Monobehaviour warning for new keyword
//class name - Vectors() #pragma strict var target : Rigidbody; private var Dir : Vector3; Dir = transform.position; private var px : Vector3= Vector3(2,2,2); function Update () {...
View ArticleAfter 4.3 uprade, Xcode warning "ld: warning: PIE disabled. Absolute...
This new warning appears in all iOS projects I build from Unity 4.3. Responses to [this question][1] indicate from many (but not all!) that Apple does not reject apps over this. I know how to hide the...
View ArticleWalker Boys tutorial error
I am getting the following error: Trying to Invoke method: scriptSceneManager.CountDown couldn't be called. Code: //scene manager sctipt //inspector variables public var GameTime : float = 60; static...
View ArticleStatic function won't call another static function
If I try doing this: static function f() { go(); } static function go() { yield; } I will get an error saying: UCW0004: WARNING: Coroutine 'go' cannot be automatically started from a static function....
View ArticleSeveral shader warnings with Unity's SSAO image effect
I have a problem with Unity's SSAO shader. I get the following warnings: Shader warning in 'Hidden/SSAO': GLSL vertex shader: 335: ERROR: ']' : syntax error parse error at line 60 Shader warning in...
View ArticleMissingComponentException: There is no 'Camera'
MissingComponentException: There is no 'Camera' attached to the "CoinPrefab" game object, but a script is trying to access it. You probably need to add a Camera to the game object "CoinPrefab". Or your...
View ArticleWarning text color not visible in MonoDevelop
Is it only me, who can't see the tokens with a warning on it in MonoDevelop? I can't find any postings about this problem. Regardless which color scheme I'm trying the color of the tokens is always...
View ArticleXcode warnings: Potential leak of an object and Dead store
Hey, Just started getting quite a few warnings in Xcode when building for iOS. Among them are: **Potential leak of an Object** and **Dead store**. Anyone else experiencing this? Can I / Should I do...
View ArticleScript attached to 'Main Camera' in scene '' is missing or no valid script is...
I keep getting this error after the build, and it makes the camera looking messed up. There's nothing wrong with the mouse look script, and everything works fine in the unity game engine, but for some...
View Articlexcode 5 issues
hi, i got 7 issues when i build/run my app in xcode 5. here is an image of what i got : ![alt text][1] 1- Should i change it ? 2- I don't know what to do 3- i solved it by changing manually the icons...
View ArticleApplying Damage to enemy script not working
I made two scripts, one is called MeleeSystem which is responsible for getting the distance between me and an enemy object/player and based on that, apply 20 damage to that object's health, which is...
View ArticleAnnoying Warnings for Script cant figure it out
Heres the error code: "You are trying to create a MonoBehaviour using the 'new' keyword. This is not allowed. MonoBehaviours can only be added using AddComponent(). Alternatively, your script can...
View ArticleWhy is this script not working? (SendMessage)
I have two scripts. One on a wall, another on a ball. I'm trying to access a void from one script, in a different script. Here is the script with the function: public void ResetBall () { var rigY =...
View ArticleUnity Editor launches game much more slowly after 2nd time
Have a weird problem that has shown up recently, my game will launch fine if upon my first starting up Unity, but the 2nd time and subsequent times, it will take 5 to 10 times longer to launch. From...
View ArticleAre Profiler Warnings documented?
The only thing I can find is this in the 4.3 release notes: Profiler: Some samples are now tagged as warnings in the CPU profiler (i.e. moving of a static collider). The warnings are shown as a count...
View ArticleNew Monobehaviour warning - instantiating unattached functions
Hello, the compiler is giving me warnings with the "map[x,z] = new Block();" section of code. void BaseMap() { bool x_color = true; bool y_color = true; for(int x = 0; x < sizex; x++) { x_color =...
View ArticleImplicit downcast from Object to boolean
I am running into the warning stating "Implicit downcard from 'Object' to 'boolean'." And it has been annoying me for quite some time now. I have been searching around and haven't come up with anything...
View ArticleMissing File Warnings in Xcode
I've removed some files from my Unity project (or moved some others) and I get warnings in Xcode that they are missing. I've removed the Dervied Data and rebuilt the project cleanly (rather than...
View ArticleWarning: "Can not play a disabled audio source"
Hello everyone! I recently got Unity 3.5 and I'm having an error everytime I try to play an AudioSource. The sound is a 2D sound and is in a prefab. Upon activating the sound I get the error(warning);...
View ArticleCompilation failed because the compiler couldn't be executed! ?
So...i have this error: Could not start compilationWin32Exception: ApplicationName='"C:/some ol' bullshit/Unity/Editor/Data/Mono\bin\mono.exe"', CommandLine='"C:/some ol'...
View Article