Search Unity

Is there any hook I can modify the Component during build AssetBundle?

Discussion in 'Editor & General Support' started by watsonsong, Mar 22, 2018.

  1. watsonsong

    watsonsong

    Joined:
    May 13, 2015
    Posts:
    555
    I am write a AssetBundleID with bundle name and asset name, to avoid using reference of the asset directly. So I can reduce the loading time and load the reference asset later.
    To avoid the asset bundle reference missing, I am save the GUID as a string into the AssetBundleID. If the bundle name and asset name is missing, I can get the asset back by GUID.
    But I met a problem is I must check and re-correct all AssetBundleID in the project before I build AssetBundle, only in this way I can avoid the asset bundle break.
    But I can not find a way to do this, is there any tips?
     
  2. watsonsong

    watsonsong

    Joined:
    May 13, 2015
    Posts:
    555
    Is there any way to do custom process when build AssetBundle, for example OnValidate callback will be invoked at this time?