Search Issue Tracker

Active

Votes

6

Found in

2017.1.1f1

Issue ID

949423

Regression

No

AssetModificationProcessor is not notified when an asset is duplicated

Asset Import Pipeline

-

Steps to reproduce:
1. Open user attached project
2. Create any type of asset (a Material for instance) in the assets
3. Notice the console logged the creation of the asset file and the creation of the associated meta file
4. Duplicate an asset
5. Notice nothing is logged in the console, AssetModificationProcessor.OnWillCreateAsset is not called

Expected result: AssetModificationProcessor.OnWillCreateAsset is called when duplicating an asset
Actual result: AssetModificationProcessor.OnWillCreateAsset is not called when duplicating an asset

Reproduced in: 2017.3.0a7, 2017.2.0b11, 2017.1.1p1, 5.6.3p3, 5.5.4p4

Comments (2)

  1. 6325f221fa39d6131f175f65e2684a27?d=mm

    Xarbrough

    Jul 09, 2019 08:28

    I am affected by this as well and don't know how to work around this issue. I need to keep track of custom metadata for specific assets. There are callbacks for all of the other operations: create, save, move, delete, everything works fine except this special case when users duplicate an asset, which happens pretty often because it's one of the fastest ways to create new assets.

  2. C2778d4182b1b39798b1e8e74dd2e143?d=mm

    Fydar

    Oct 18, 2017 17:31

    I have this issue too, it's pretty annoying trying to keep an asset manifest.

    As a workaround, I used OnWillSaveAssets and wait for the asset to be saved, but this is not a good enough solution because the OnWillSaveAssets could be called ages into the future. Any ideas on how to fix it until Unity get's around to it?

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.