obsolete function became an error???

It should be warning, I havent modified the script, but some days ago it is warning(at least it hadn’t attracted my attention), but now it is totally an error. unity cannot run because of it??
what is the problem??

You should not use obsolete methods because they are outdated. There is a good reason the Unity developers marked some function members with this attribute. If a method is unsafe to use and/or doesnt at all do what you want it to do anymore, a parameter for this ObsoleteAttribute can be set to throw an exception when used in the code.

This is what happened in your situation. If you post the name of the method you call, this forum can maybe help you to exchange it with the appropriate replacement.

I know how to use the appropriate version, but my question is … is it so serious as to become an error??should not it just be a warning? my unity has not changed, the script has not been modified. but some days ago, it could be compiled but now it is totally an error and cannot be compiled anymore…
I think it is unity’s problem

this is the snapshort…

I see green and not red. Green usually means it just wants your attention, not that it’s an error. Are you sure that is where your error is and not somewhere else. I would double check.

And really, when you mouse over it, it should tell you why it’s marked. Chances are it’s just warning you that it’s obsolete and suggest a possible change.

well, it is a warning in visual studio, but in unity it is the ONLY error, the only one red line in console, so how am I supposed to find another error???the same project copy, my colleague works fine with it…I tried a reinstall, but no way to solve it…

Can you show the unity error? And when you double click the unity error, does it take you to that line of code?

this is the unity error. you see it is the only error and the only warning …and what I comment this line, another error comes out(some error looks like “cannot load assembly …” ).

2680800--189418--60616094645.png

when I double clicked it, it does not take me to the line…this is abnormal

now the compiler gives me endless error, when I solve one, another comes…always one error

ok,problem found, it is the wrong platform

You can edit your posts @JohnSonLi . That way you dont have to write so many messages.