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

Scene Management

-

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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.