- Home /
Standard Asset water material is pink
I imported the Environment standard asset into Unity and the water isn't working. It just turns that pink color that it does when Unity can't find any information for a material. I tried changing the material type to standard and it comes up with some color. But if I leave it at one of the water shaders, it turns pink. How do I fix this?
I also got this error:
Material doesn't have a float or range property '_WaveScale' UnityEngine.Material:GetFloat(String) UnityStandardAssets.Water.WaterBasic:Update() (at Assets/Standard Assets/Environment/Water (Basic)/Scripts/WaterBasic.cs:23)
And the shader has this error:
undeclared identifier 'unity_ObjectToWorld' Compiling Vertex program Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING
Answer by greatwhiteshark17283 · Jun 24, 2016 at 12:29 AM
Nevermind, figured it out. The shader had the value "unity_ObjectToWorld" repeated throughout it. I just replaced it with "_Object2World" and it worked. I hope they fix this soon so I don't need to keep changing it everytime I import the asset.
Answer by thorzeus · Jun 22, 2016 at 09:39 AM
Im using the very latest version of unity personal (64bit).
Answer by iMagesBlues · Jun 22, 2016 at 05:11 AM
Can you double check if the Standard Assets package is compatible to your current Unity version. You might have been using an incompatible older version of the package.
Or can you check if you are using the Water (Basic) shader because I think there are a couple of other shaders in the package which requires Unity PRO (That is if you're not using PRO)
Yes, I'm using the latest version of Unity with the default assets. I actually figured out how to fix it and forgot to mark the question as resolved. The shader had the value "unity_ObjectToWorld" repeated throughout it. I just replaced it with "_Object2World" and it worked. I hope they fix this soon so I don't need to keep changing it everytime I import the asset. Thank you for your help, anyway.
Answer by Deathwalker316 · Jul 23, 2016 at 07:42 AM
This works for all the shaders, btw. Just need to do it for the various scripts and change the instances to _Object2World. Thanks!
Your answer
Follow this Question
Related Questions
Water Shaders Question 1 Answer
Material doesn't have a color property '_Color' 4 Answers
Imported Materials Are Null 0 Answers
Reflective/refractive 2D material, like static water. 0 Answers