- Home /
 
 
               Question by 
               K0ST4S · Sep 06, 2019 at 11:44 AM · 
                serializationmetametadatasource code  
              
 
              How to create meta files?
I'm coding a web-based dashboard that allows user to compile Unity project with selected settings. One such setting is icon. Script downloads icon from url and saves to the Unity project. To assign an icon, in Player settings programmatically, I need it's GUID. To have GUID, I need to generate default meta file for the downloaded icon. Do Unity reveal how they do it?
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by K0ST4S · Sep 10, 2019 at 03:27 PM
The answer is AssetDatabase.Refresh() or AssetDatabase.ForceSerializeAssets
Your answer