- Home /
Converting XML-files into assets
I have a bunch of XML-files in my project (in a specific folder) I want converted into scriptableobjects/assets. If an XML-file is changed (in the editor) I want the assets to be automatically updated. How do I accomplish this?
Answer by troien · Nov 05, 2014 at 10:46 AM
I think you need to write a AssetPostprocessor
And more specifically use the method OnPostprocessAllAssets
I don't have any experience with this class myself, but looking at he docs it could be used for the thing you want to do.
See also this post for a example.
Your answer
Follow this Question
Related Questions
ScriptableObject not saving data to asset 2 Answers
How to create custom asset icons for ScriptableObject instances 2 Answers
Finding a GameObject in an editor script based on position 2 Answers
Stop a MonoBehavior from being addable as a script? 0 Answers
Drawing position handle from ScriptableObject editor. 2 Answers