ScriptReference/AssetModificationProcessor.OnWillCreateAsset #610
Replies: 2 comments
-
|
Note that this method is only called when the importing asset does not yet have a valid .meta file. I.E. files added via vcs (where the .meta file is included), or files copied from another project along with their .meta file will not trigger this event. |
Beta Was this translation helpful? Give feedback.
-
|
In 2022.2.X, OnWillCreateAsset was called for both the assetPath and the metaFilePath, whereas in 2021, it was only called for the metaFilePath. This change led to FileNotFoundExceptions in some older scripts. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/AssetModificationProcessor.OnWillCreateAsset
https://docs.unity3d.com/ScriptReference/AssetModificationProcessor.OnWillCreateAsset.html
Beta Was this translation helpful? Give feedback.
All reactions