- Home /
Question by
Mudloop · Mar 12, 2012 at 01:42 AM ·
assetdatabase
Can I remove sub-assets?
Hi,
In a tool I'm developing, I create an asset with a number of sub-assets (with AssetDatabase.AddObjectToAsset). Is it possible to remove those sub-assets? I can only find a way to remove the main asset in the documentation.
Thanks!
Comment
Best Answer
Answer by Mudloop · Mar 12, 2012 at 03:43 AM
I found the solution myself - I just need to use DestroyImmediate, which I had already tried before posting this, but I also need to reimport the main asset.