Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

Assets not being reimported in batchmode?

Discussion in 'Cache Server' started by Martin_Gonzalez, Jul 24, 2020.

  1. Martin_Gonzalez

    Martin_Gonzalez

    Joined:
    Mar 25, 2012
    Posts:
    358
    Hi! I don't know if it's the right place to ask this. But I have the following problem.
    It seems that running

    Code (CSharp):
    1. AssetDatabase.ImportAsset("Assets/Standard Assets", ImportAssetOptions.ImportRecursive);
    is not being called in batchmode. Can it be?

    I have a situation where I update a dependency I and I have to do a reimport to bring the update, seems like Library is not changing after the update and I need to reimport while calling in batchmode
     
  2. Martin_Gonzalez

    Martin_Gonzalez

    Joined:
    Mar 25, 2012
    Posts:
    358
    We managed this issue by updating .meta files modification date from outside of Unity

    example

    Code (JavaScript):
    1. touch /some/path/to/mycube.prefab.meta
     
unityunity