Search Issue Tracker
By Design
Votes
0
Found in
5.5.0p4
Issue ID
900663
Regression
No
AssetDatabase.LoadAssetAtPath() returns null when loading asset copied with AssetDatabase.CopyAsset
Steps to reproduce:
1. Open attached project
2. Rightclick "coop_01" asset and Reimport (this runs CopyAssetOnPostprocessModel script)
3. Notice that "Material == null: True" appears in the console
4. Choose Bug/Copy And Load on the top menu
5. Notice that "Material == null: False" appears in the console
Expected result: "Material == null: True" should not be true when the asset is copied with AssetDatabase.CopyAsset()
Actual result: "Material == null: True" is true when asset is copied with AssetDatabase.CopyAsset() (Gif attached)
Reproduced in: 2017.1.0b1, 5.6.0f3, 5.5.0p4, 5.4.4p4
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:
PostProcessor callbacks are called during import and importers can't have side effects (i.e. they can't modify other assets)