GUIElement.enabled = true

Open one project from 1.6.2 to 2.0

and I got a small letter i and it says “warning GUIElement.enabled = true is obsolete, use GUITexture instead”
I checked the docs and GUIElement is till there, I close Unity and open the project again and the warning never showed up again.

Was that a fluke or GUIElement is obsolote but will still run or work.

Project is working the way it was with the 1.6.2 version.

Still need to read the docs about the GUITexture,

Should I just replace the GUIElement. enabled with GUITexture.enabled?

Thanks,
Ray

This is a deprecation warning. It means that although your code still works, at some future Unity release, we plan to remove the feature you’re using.

The error only shows up when compiling scripts that use the deprecated feature.

Hey Ray,

Yup, that’s all it takes.

Sweet, That was easy :slight_smile:

Ray