Search Unity

  1. We would like to hear your feedback about Unity and our products. Click here for more information.
    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

    Immanuel-Scholz

    Joined:
    Jun 8, 2013
    Posts:
    217
    Hi,

    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.