Hi all,
“GameObject.renderer” is replaced by “GameObject.Getcompoent()”.
Are there a complete list of other variables of GameObject that are deprecated too?
Thanks in advance
Hi all,
“GameObject.renderer” is replaced by “GameObject.Getcompoent()”.
Are there a complete list of other variables of GameObject that are deprecated too?
Thanks in advance
Not that I know of, but that was the big one when it comes to GameObjects specifically, and it made completely sense. They were also thinking of making .transform work differently in the background so that it’s faster (right now it’s really the equivalent of calling GetComponent()), but that doesn’t seem to have happened.
If you want a complete-ish list of changes, just check the “big” release notes, like Unity 4.0 and 5.0. Here’s the latest: http://unity3d.com/unity/whats-new/unity-5.0
Thank you, Lysander.
All of the shortcut accessors except .transform and .gameObject were deprecated.
They promoted internal dependency. They were simply wrappers for GetComponent anyway, this sort of practice was misleading.