Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    221
    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.