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
1
Question by Yello1 · Nov 28, 2010 at 01:58 AM · errorfloatwatergetmessage

Error Code with Unity just sitting with a project open, what is it, how to fix?

The following is an error message that keeps scrolling in the error section of Unity when I have a scene opened. I do not have Unity Pro. I have a water feature but did not select Pro Water.

Material doesn't have a float or range property '_WaveScale' UnityEngine.Material:GetFloat(String) Water:Update() (at Assets/Standard Assets/Water (Pro Only)/Sources/Scripts/Water.cs:182)

Comment
Add comment
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

4 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by AGP · Dec 16, 2010 at 06:56 PM

Then the water won't move. A better solution would be to guess the values of waveScale and waveSpeed. I set replaced the lines as follows and it works nicely. Play with the values of waveSpeed to change the water speed and direction. Vector4 waveSpeed = new Vector4(50, 50, 100, 100);//X, Y, Z, W float waveScale = .01f;

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
1

Answer by Antigen · Oct 18, 2014 at 10:00 AM

add

 if(!mat.HasProperty("WaveSpeed") || !mat.HasProperty("_WaveScale")) return;

just before line

 Vector4 waveSpeed = mat.GetVector("WaveSpeed");

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 IJM · Nov 28, 2010 at 12:11 PM

The error is in the Water.cs (c# script) on the line 182. If you remove that file from your project it will work fine.

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 FallenHope · Mar 02, 2015 at 02:12 PM

Answer: input 100 for x and 5 for y in the corresponding fields for wave speed parameters. Alternately (200,10) can also be used.

From what i can tell from this Example of syntax, for properties of water shader in the info guide here;

file:///C:/Program%20Files%20%28x86%29/Unity/Editor/Data/Documentation/html/en/Manual/SL-Properties.html

There seems to be some type of formula involved... Even though i can't really say what the algebraic formula is used to fix this prob, notice under wave scale .02 and .15 somehow equal .07 ....only thing i came up with was 7.5 because .15/.02 = 7.5, i mistakenly thought that you simply divide the value of x by the value of Y. so, after reading the script used in actual water creation, in-game; i noticed the script seemed to be looking for a float time of 20.0f. 100/5 or 200/10 both work plugged into the x and y axis. the lager being the x factor. Make sure you clear the console before trying to play your new water. I got (100,5) and (200,10) to work, but no idea why lol.

Also you are changing the values that appear with x,y,z,w under the wave speed, not the values next to wavescale. only the ones under wave speed need changed.

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

2 People are following this question.

avatar image avatar image

Related Questions

Floating Character, Water3 1 Answer

Script not using other script #C 2 Answers

if statement error 1 Answer

Is there an easy way to pop-up error messages 3 Answers

problems with updating the unity and download all versions (internet connection lost) error re-connect 0 Answers


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