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
- Highlighter.Highlight does not find window when using class name as window title
- Highlighter.Highlight highlights a different component when multiple components have the same property path
- Highlighter.Highlight does not find elements in an array or list when the array or list is collapsed
- [URP][NRP] RenderPass, BeginSubPass, and EndRenderPass errors are thrown when Native RenderPass is enabled
- D3D11 swapchain error pop-up appears and the Editor shuts down when Generating Lighting with Probe Volumes present
Add comment