How to create an Assembly Definition Asset through an Editor script?

Hi there!

I want to create an Assembly Definition Asset through an Editor script and then save it to a folder.

I am aware of ways to save it to a folder; i just need to figure out a way to actually create an Assembly Definition Asset from code.

How can I do that?

I never tried it, so I’m just brainstorming here, but you can easily build a quick test rig to check if it works. I would try to put together the text content of the assembly def file. They are simple text files after all. Just create one for test, open it up in a text editor and check out the contents, fairly simple to deduct what’s what in there.