Search Feedback

88
votes

Remove obsolete/deprecated methods/components

Scripting

-

-

Please remove most of/all obsolete code. There's now extreme amounts of code left overs since the early days cluttering down intellisense for no reason. Some major pains are the public static methods in Quaternion, GameObject and the default components in all Objects.

I'm a teacher trying to teach people to use Unity, and telling people they have to make a new variable and reference it to the assigned Rigidbody instead of just using ".rigidbody" is a major confusing for a lot of people. Not to mention that you'll have to hide the member using "new" if you want to use that particular name.

I feel like this is long overdue now. With the introduction of a new Versioning system (since 201x.x) it's a perfect opportunity to break some backwards compatibility for once. If people still want to work on their legacy code they'll just have to upgrade or suck it up. The clutter is starting to get real.

Comments (2)

  1. 323ebc87c1d690288ce762b0415b72f8?d=mm

    chaosmaker

    Apr 16, 2018 12:13

    some deprecated code doesnt work. so you can call the method but nothing happens. why does it even exist then?

  2. 849ebd1f0cf3b83531dba72de32f3adf?d=mm

    LoungeKatt

    Apr 11, 2018 03:28

    I don't entirely understand your closing comment. "If people still want to work on their legacy code they'll just have to upgrade or suck it up" is a contradiction. Wouldn't it be that if people want to work on their legacy code they will have to stay on a previous version or update the code? They wouldn't upgrade to work on legacy code, since it would be incompatible.

    I am all for removing deprecated code after a reasonable interval, so long as the #if !UNITY_X_OR_NEWER tags continue to completely ignore that code (to prevent it breaking compatibility with newer builds) and there is still some way to access past documentation. Many professional game platforms, such as PSN or Nintendo, require using a specific version of the editor and it is often outdated.

    I do hope your students aren't that confused by things like deprecation. It would be unfortunate to see them unable to work at certain companies simply because of the Unity version they currently require.

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(9807)

2D

(259)

Ads

(49)

AI & Navigation

(77)

Analytics

(113)

Animation

(359)

Asset Store

(264)

Assets

(508)

Audio

(166)

Cloud Build

(117)

Collaborate

(44)

Docs & Tutorials

(216)

Editor

(2267)

Everyplay

(13)

Game Performance Reporting

(16)

General

(880)

Graphics

(812)

GUI

(394)

Input

(155)

Licensing

(82)

Networking

(173)

Physics

(361)

Platforms

(425)

Profiling & Optimization

(76)

Runtime

(168)

Scripting

(1086)

Terrain

(162)

WebGL

(138)