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

Closed
ismyhc opened this Issue Nov 14, 2012 · 2 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
Owner
MattRix commented Nov 14, 2012

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

@MattRix MattRix was assigned Nov 14, 2012
@MattRix MattRix added a commit that referenced this issue Nov 14, 2012
@MattRix 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
c30893f
@MattRix
Owner
MattRix commented Nov 14, 2012

Fixed! (in dev) :)

@MattRix MattRix closed this Nov 14, 2012
@MattRix MattRix added a commit that referenced this issue Nov 19, 2012
@MattRix 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.
3acd00d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment