Search Issue Tracker

By Design

Votes

0

Found in

2018.3.8f1

Issue ID

1137425

Regression

No

Script does not attach to prefab source when pressing Apply All in prefab Overrides

Scene Management

-

To reproduce:
1. Open attached project
2. In Hierarchy select Gameplay_UI prefab
3. In inspector window press Overrides and select button script
4. Notice that on override it has a script
5. Press Apply All and check again overrides.
6. Notice that the script didn't apply to prefab source

Actual result: the Overrides does not apply script attachments
Expected result: The overrides should apply script attachment

Reproduced with: 2018.3.0b1; 2018.3.8f1; 2018.3.11f1;
Cant reproduce on 2019.1 and 2019.2 due to the errors:
C:/Users/martyna/Downloads/case_1137425-HexT-BitBucket/Library/PackageCache/com.unity.textmeshpro@2.0.0/Scripts/Runtime/TMPro_Private.cs(1751,73): error CS1644: Feature `out variable declaration' cannot be used because it is not part of the C# 4.0 language specification

  1. Resolution Note:

    User is trying to apply the reference to "ApplicationController" Component that added to GameObject in the scene,
    but it is not possible for prefab asset to keep a reference to a scene object.

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.