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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment