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
- UI Toolkit meshes are fully rendered and rasterized when opacity is 0
- Light rendering artefacts appear in the Editor when assigning unsupported 3D Custom Render Texture in Camera’s Output Texture, unclearable errors and warnings spammed
- Memory leak when running a test with "GfxThreadingMode" set to "SplitJobs"
- Loading Unloaded unsaved Scene throws “ArgumentException” error in the Console
- Crash on std::__1::__tree_const_iterator when opening the Build Profiles window in a specific project
Add comment