Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by totalnoob · Nov 09, 2011 at 05:18 AM · errorcompilerisland demo

please help island demo compieler error

OK i'm new to unity i have a question i cant find out i try to load the game but i have compiler errors the console say's

Assets/Scripts/UnderwaterEffects.js(23,46): BCE0022: Cannot convert 'UnityEngine.GameObject' to 'float'.

what do i do

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image syclamoth · Nov 09, 2011 at 05:20 AM 0
Share

Well, presumably it's because you're trying to use a GameObject as a float. Could you show the line of code in question? Anyone can see what the error is from the message, but it's hard to tell you how to fix it without more specifics.

avatar image totalnoob · Nov 09, 2011 at 06:20 AM 0
Share

var waterLevel : float;

i never changed anything that is how i downloaded it but what do i change this to

avatar image Eric5h5 · Nov 09, 2011 at 06:22 AM 0
Share

The island demo was written for Unity 2 and isn't compatible with Unity 3 without hacking around at some stuff, which you probably don't want to do if you're new.

avatar image totalnoob · Nov 09, 2011 at 06:33 AM 0
Share

where can i get a new island demo or old unity

avatar image Eric5h5 · Nov 09, 2011 at 06:38 AM 0
Share

There isn't a new one, just look at something else like the Boot Camp demo.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by hanskarlsson · Sep 18, 2012 at 12:50 AM

My cheap shooting-from-the-hip tape-and-glue solution was to comment out the lines that gave me an error, and I could successfully compile and run the Island demo.

It's not the optimal solution, of course, but I'm new to Unity and not sure yet how to properly fix those errors. :)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by DriFtys · Feb 03, 2014 at 06:50 PM

find the line which says: if(water) waterLevel = water.gameObject; and replace the following: if(water) waterLevel = water.gameObject.position.y; i hope it will works else delete the script... im new to unity so (comments removed)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Tons of compiler Errors.. Please help ;_; 1 Answer

Unity Internal Compiler Error, not there in Editor 0 Answers

Cilck to move script malfunction need help!!! 1 Answer

No appropriate version of 'UnityEngine.Object.Instantiate. Please Help :( 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges