Hello,
I want to write a ScriptedImporter to load a voxel format I created (it’s an old format that I have lots of assets already made with). I would also like the ScriptedImporter to perform some calculations on the data that are fairly CPU-heavy (I want to raymarch the voxel objects to bake a custom ambient occlusion effect into them). However, I fear that these calculations won’t be preserved, and that the calculations will happen every time Unity is loaded (The ScriptedImporter is called every time a file is loaded, as far as I know). Is there any way I can ensure this data be stored in some way, perhaps by serialization in the generated .meta file that accompanies my custom file?
Thanks!