|
Is there a tutorial for creating an underwater effect from scratch? I'm having troubles recreating the underwater features from the island demo. Thanks.
(comments are locked)
|
|
try this its inset the best on but it will have to do you need to put it on the main cam and you need to call it underwater its also a JavaScript good luck I tried this script and it seems to work, but Unity is giving me errors. I'm using 3.5. The error I get is: ArgumentException: get_fog can only be called from the main thread. Constructors and field initializers will be executed from the loading thread when loading a scene. If this is a version difference, do you have a similar script that works with 3.5?
Jun 06 '12 at 05:58 PM
Phoebert
@Phoebert I think that error is when you can't read some data outside of a function, most likely becuase the data hasn't loaded yet. Try putting at the beggining and puttingat the beggining of the Start function. Do the same thing for each of the 4 private vars... Scribe
Jun 06 '12 at 06:17 PM
Scribe
Thanks Scribe :) That fixed it!
Jun 07 '12 at 01:06 AM
Phoebert
I tried it and I was wondering if you could go into more detail on the error correction? And one more thing, is it possible to add a skybox at all? I tried adding it to the script, that didn't work, (hence the var noskybox) so I tried attaching it separately. Which didn't work either.
Sep 24 '12 at 04:52 AM
All.Else
(comments are locked)
|
|
What is the script that will give me no errors? Please? Hi There. Please don't post comments as answers. Post comments by clicking the [add new comment] button, a window then open for you to type in. Answer fields are for answers only, as this is a knowledge base. You can convert this answer to a comment (or just edit your original question), you'll also get a better chance of getting an actual answer if the main list shows none or one answer in blue =]
Sep 21 '12 at 08:29 PM
alucardj
(comments are locked)
|
