- Home /
Island Demo Help
First off, hi. I'm new to Unity and I would like to use it to create a game for my final year project. I just downloaded the island demo and this error message keeps popping up : Assets/Scripts/UnderwaterEffects.js(23,46): BCE0022: Cannot convert 'UnityEngine.GameObject' to 'float'.
Was wandering if there's anyone out there who could offer me some assistance on this. Thanks in advance.
Answer by Berenger · Jan 23, 2013 at 12:16 PM
Check out this answer : http://answers.unity3d.com/questions/200734/compiler-error.html
or : http://answers.unity3d.com/questions/29463/island-demo-trees.html
Answer by Meater6 · Jan 23, 2013 at 12:50 PM
The error means that in line 23 in the UnderwaterEffects script, you (or UT in this case) are trying to assign (or equate) a GameObject to a float. A GameObject is a built in class. Everything in your hierarchy panel is a GameObject. A float is any real number.
I believe the Island demo is outdated, which is why there would be any errors in it. But its still good to know how to solve this error, as it will be quite a common one when coding in unity.
Your answer