Search Issue Tracker
Duplicate
Votes
0
Found in
2017.1.0f1
Issue ID
926150
Regression
Yes
Attaching a script to an object and then deleting it causes the script component to disappear
To reproduce:
1. Open attached Unity project "Betatests.zip"
2. Attach "deletethis" script to a GameObject
3. Delete "deletethis" script from the Assets folder
4. Go into Play mode
5. Observe the GameObject to which the "deletethis" script was applied
Expected result: The Script component should still be present in the Inspector window and show "missing script" (see attached gif "Expected.gif")
Actual result: The whole script component is gone but the console keeps on prompting "missing monobehaviour script" each time when entering the Play Mode (see attached gif "Actual.gif")
Regression first introduced in: 2017.1.0b6
Reproduced on: 2017.1.0b6, 2017.2.0b1
Not reproduced on: 5.6.2f1, 2017.1.0b5
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "SupportsRandomWriteOnRenderTextureFormat()" shows "False" when executed on 2023.2 and 6000.0 streams
- Size of ShadowCaster2D with Casting Source set to a Collider increases when RigidBody2D is attached to the GameObject
- GameObjects with a material derived from a Custom Lighting Surface Shader are displayed as skewed on quads when the Camera's Width and Height properties of the Viewport Rect are lower than 1
- Warning 'Unable to find player assmebly' is thrown when building some Project Templates
- ArgumentOutOfRangeException when manipulating the Project Settings search bar
This is a duplicate of issue #925372