New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnityEngine.GameObject.active is obsolete: Unity 4 #52

Closed
ismyhc opened this Issue Nov 14, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@ismyhc

ismyhc commented Nov 14, 2012

Just installed Unity 4. Everything seems to be working fine with Futile except for this warning:

Assets/Plugins/Futile/Core/FRenderLayer.cs(110,29): warning CS0618: UnityEngine.GameObject.active' is obsolete:GameObject.active is obsolete. Use GameObject.SetActive(), GameObject.activeSelf or GameObject.activeInHierarchy.'

Just thought I would give you a heads up!

@MattRix

This comment has been minimized.

Show comment
Hide comment
@MattRix

MattRix Nov 14, 2012

Owner

Cool, thanks for letting me know, should be an easy fix! :)

Owner

MattRix commented Nov 14, 2012

Cool, thanks for letting me know, should be an easy fix! :)

@ghost ghost assigned MattRix Nov 14, 2012

MattRix added a commit that referenced this issue Nov 14, 2012

Support Unity 4's new gameObject activation
Had to do an #if to check for every Unity 3+ version number, seems kind
of silly but it works fine.

This solves issue #52
@MattRix

This comment has been minimized.

Show comment
Hide comment
@MattRix

MattRix Nov 14, 2012

Owner

Fixed! (in dev) :)

Owner

MattRix commented Nov 14, 2012

Fixed! (in dev) :)

@MattRix MattRix closed this Nov 14, 2012

MattRix added a commit that referenced this issue Nov 19, 2012

Using SetActive() for Unity 4
I mistakenly used activeSelf (which is read only) the first time I tried
to do this!

It fixes #54 and solves #52 properly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment