- Home /
Help! Compiler Error!
Hey guys,
i started today with unity and after i downloaded the tropical island demo because i wanted to edit it for my game, i wanted to test, how is it to "play" it. but i can't play it and it shows me "compile error ... fix it" or something like that. I found the line, where the mistake is (yes it stands in the error) but i dont know what to change to fix it the error is Assets/Scripts/UnderwaterEffects.js(23,46): BCE0022: Cannot convert 'UnityEngine.GameObject' to 'float'
and the line in script is that:
{
water = FindObjectOfType(Water);
if(water) waterLevel = water.gameObject;
}
i hope i get a quick answer
greetz
ISIBOII
Not enough script here to be sure, but you likely need to declare waterLevel like:
var waterLevel : float;
or assign it a flow value:
var waterLevel = 0.0;
Answer by Graham-Dunnett · Apr 04, 2013 at 07:51 PM
http://answers.unity3d.com/questions/173026/underwater-effects-error.html
http://answers.unity3d.com/questions/200734/compiler-error.html
http://answers.unity3d.com/questions/386163/island-demo-help.html
http://answers.unity3d.com/questions/29463/island-demo-trees.html
To list a few questions and answers on this. ;-)
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Tons of compiler Errors.. Please help ;_; 1 Answer
Complete Packages wont run correctly in Unity 1 Answer
Internal Compiler Error 1 Answer
'else' not working.... please help:( 4 Answers