Help me with this underwater effects problem

Assets/Scripts/Performance/PerformanceTweak.js(107,26): BCE0018: The name ‘UnderwaterEffects’ does not denote a valid type (‘not found’).

var underwater : UnderwaterEffects;

2 Answers

2

Is UnderwaterEffects in C# ? If it is, over here.

When you try to access a class declared in another language, compilation order matters. The link I gave explain that order. I know PerformanceTweak is javascript because of the extension .js I see in your log. If under UnderwaterEffects is in C#, things get complicated (but not impossible). To know if it's un C#, you can look the extension (cs or js), the icon beside the name (Js or C#) or look the code, if you are familiar with C#.

I asked Ockham, he told me same consequences, probably same causes.

I bet you have neither GlowEffectIsland.js nor BlurEffectIsland.js in your project folder. Add them.

Former comment, I used answer instead of comments, must have been drunk oO : Absolutely. If it still doesn't find it, see my link about compilation order. I'm afraid it comes from your project organization, not your script.

its cs u sure?