- Home /
Savings texture to png and then making asset bundle
Situation:
In my editor script, i am creating a texture from scratch and then saving it as a png.
Right after that, I try to save it into an asset bundle.
Problem: Unity hasn't imported the texture yet, after saving it, into unity. Which means I can't save it to the asset bundle. The only way for me to do this, is first to create the texture and than wait for a bit for unity to import it. After that, I can save my assetbundle.
This is NOT a valid option for me, I need to save it immediately as an asset bundle, so is there a function in unity editor to import the texture manually right after saving it?
You did try AssetDatabase.ImportAsset("...", ImportAssetOptions.ForceSynchronousImport), right?
No, didn't know there was a function like that, trying it now.
Your answer
Follow this Question
Related Questions
How to import the object from server to unity 2 Answers
Missing scripts on gameObject created from asset bundle 0 Answers
Is there a way to exclude original sprites in spritepacker that's in asset bundle? 2 Answers
Can't load asset bundles from local paths containing spaces? 1 Answer
what should i learn addressables or asset bundles ?? 0 Answers