Search Issue Tracker
Duplicate
Votes
0
Found in
2018.3.0a6
2018.3.0f2
2019.1.0a1
Issue ID
1115486
Regression
No
OnValidate() fails to recognize GameObject as Prefab when Prefab changes in Prefab edit mode are being saved
Steps to reproduce:
1. Open attached project "1115486_test"
2. In the Project window go to Assets folder and select TestPrefab
3. In the Inspector window Change the Bool variable "Test"
4. Notice the console
Expected results: OnValidate() recognizes Prefab as Regular while Prefab is being saved
Actual results: OnValidate() recognizes Prefab as NotAPrefab while Prefab is being saved
Reproducible with: 2018.3.0a6, 2018.3.2f1, 2019.2.0a1
Note: Prefab edit mode was added in 2018.3.0a6. It seems that sometimes the bug message is displayed when you only access the Prefab edit mode
-
Resolution Note:
We have a Github examples project for Prefab API where you will find utility methods that logs the GameObject/Prefab type of a GameObject.
There you can see what extra API you can use for checking type info.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Popup windows spawn on the incorrect monitor when the Editor is placed near the boundary of scaled monitor next to a monitor with different scaling
- Hidden Tabs do not shift into empty space after closing visible Tabs
- [Android] Application not deployed on a device when "activity-alias" is used in the AndroidManifest
- Shader compile process adds shader ID to the constant buffer name when the word "Globals" is being used in Vulkan
- Audio Mixer Snapshot link to the documentation isn’t working
This is a duplicate of issue #1099789