Search Unity

  1. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice

Script field in Inspector is now diabled? But WHY?

Discussion in '5.3 Beta' started by Immanuel-Scholz, Dec 6, 2015.

  1. Immanuel-Scholz


    Jun 8, 2013

    I recognized that unity now has the script field in the inspector editor disabled, means you can't replace the script of a component anymore.

    UI code already hide this field.

    Why? AFAIKS there is no difference in the serialization system under the hood that introduces any difficulty in just applying the serialized set of properties to a new data type.

    This was a heck of a useful feature for many circumstances (and basically my most successfull #unitytips so far ;)). Most useful for changing a class into its sub-class or super-class.

    I am not very concerned at the moment, as it remains to be possible to change the script in "Debug" view of the inspector, but this change must have had a reason. And I am always curious :)
    litebox and leni8ec like this.