WebGL build errors in 5.1

I started to get the compile errors after upgrading to 5.1

error CS0246: The type or namespace name `MonoBehaviour’ could not be found. Are you missing a using directive or an assembly reference?

These errors disappear after changing the target for anything else like WebPlayer.

Where to look for any remedy for that?

5.1 is here already? geez, I can’t keep up. Thanks for posting the error, I don’t know the answer but thanks so I know to keep away from 5.1 for now as i’m working with WebGL myself and don’t need any further issues to deal with. = \

Hopefully someone can help you.

On second thought, I just reviewed the release notes and there are plenty of important updates in 5.1, so I might give it a go this weekend. If I run into any related issues and find a fix, i’ll be sure to post it here.

[QUOTE="

keep away from 5.1 for now as i’m working with WebGL myself and don’t need any further issues to deal with. = \

Hopefully someone can help you.[/QUOTE]

I have tested a number

You are right.
I have tested a number of various projects and all have this issue with WebGL.
It is better to wait for a patch release.

1 Like