Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.0f1
2018.3.0f2
Issue ID
1111458
Regression
No
MainObjectFileID is not set when importing NativeFormat assets created outside of the Editor without .meta files
This is not a huge bug as duplicating Assets outside of the Editor in this way isn't the ideal workflow. But there is a customer with this workflow and it causes issues when there are childAssets
To reproduce:
1. Download attached project “2018MetaChange.zip" and open in Unity
2. Open "2018MetaChange" folder and then "Assets" folder
3. Find "New Material" and "DataRoot" assets
4. Duplicate them outside of the Editor without .meta files
5. Focus on Unity Editor and wait while it imports newly created files
6. Look at DataRoot<copy> in the Editor
7. Observe that the DataRoot Object may not be DataRoot - still named DataRoot in Project view
8. Check the previous step by expanding the Object and see if a Child object is named DataRoot (this is the actual DataRoot)
9. Come back to "2018MetaChange" folder and then "Assets" folder
10. Find "New Material<copy>" and "DataRoot<copy>" assets .meta files
11. Open them with Notepad++ or TextEdit
12. Look at the text of the metadata and observe that m_MainObjectFileId have 0 value
Notes:
- This issue appears on both Windows and macOS
- Before Importing newly created assets to Unity Editor, make sure that their name ends with .asset or .mat
Reproduced on Unity 2017.4.0f1, 2017.4.18f1, 2018.2.20f1, 2018.3.2f1 and 2019.1.0a14
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (2019.2.X):
Customer informed that we aren't able to fix