Search Issue Tracker

Fixed in 2018.3.X

Votes

0

Found in

2018.3.0a4

Issue ID

1056408

Regression

No

[Improved Prefabs] ArgumentException appears while applying prefab instance with missing script

Scene Management

-

Steps:
1. Make two prefabs 'A' and 'B'
2. Instantiate them both
3. Create a script and add it to 'B'
4. Delete the script asset
5. Add 'B' as a child to 'A'
6. Right-click on 'B' and choose 'Added GameObject'
7. Choose 'Apply to Prefab A'
==>
"You are trying to replace or create a Prefab from the instance 'B' that references a missing script. This is not allowed." - That is Ok
"ArgumentNullException: Value cannot be null. Parameter name: objectToUndo" -> Should not be here

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.