Search Issue Tracker
Fixed in 2018.3.X
Votes
0
Found in
2018.3.0a4
Issue ID
1056167
Regression
No
[Improved Prefabs] Adding a new script from "Add Component" button in Inspector shows the error message in Prefab Mode
Steps:
1. Create a prefab out of any GameObject
2. Open it in Prefab Mode
3. Select root GameObject
4. Click on "Add Component" button and choose New Script
5. Type a name for your script
6. Click on "Create and add" button
==> "You are trying to replace or create a Prefab from the instance 'Cube' that contains the script '<ScriptName>', which does not derive from MonoBehavior. This is not allowed."
Note: Script is created but not added to prefab root GameObject
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Dropdown property is cut off and adds unnecessary side padding when a Sub Graph is used as a node in Shader Graph
- All text in the Project Settings Window is still Tinted White after deleting Text in the Search Window
- "WebGL Template" icons disappear when building the project with the Project Settings opened
- Variant Family window UI issues when Prefab title is long
- Player crash when switching focus in Exclusive Fullscreen mode with DirectX 12
Add comment