Skip to content
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
Closed

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

ismyhc opened this issue Nov 14, 2012 · 2 comments
Assignees
Labels

Comments

@ismyhc
Copy link

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
Copy link
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
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
Copy link
Owner

MattRix commented Nov 14, 2012

Fixed! (in dev) :)

@MattRix MattRix closed this as completed Nov 14, 2012
MattRix added a commit that referenced this issue Nov 19, 2012
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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants