I have written some code which extrudes meshes based on SVG curves. Each level of my game is created based on a different SVG file. At the moment the levels are being generated at runtime, which is taking too long.
I want to write some code to automatically generate multiple scenes from the files at compile time. I understand you can extend the editor to do this sort of thing, but documentation is sparse. In particular, I get the impression that Unity iPhone (which I am using) does not support all the same functionality at standard Unity.
Can anyone advise me how to proceed? Thanks.
your impression is right.
Unity iPhone 1.x uses the Unity 2.1 editor. Thats important cause large parts of the editor and its capabilities were expanded with Unity 2.5 and are not available to the iphone editor at all at the time.
With Unity 3 (and thus unity iphone 3 etc) that is no longer the case as all use the same editor.
For what you want to do though that could be a problem as the scene control and code based generation aspects are weaker but given they are sufficient, a simple function that you call from the menu will do it, for that you don’t need to use any of the editor functionalities basically, you only need a class with static function and define it a custom menu entry so you can call that function from the menu.
or you use a ScriptableWizard to work basing on a selection for example.
there are various ways.
Hmm, yes. I am really looking forward to the integrated v3 editor.
I’ve made a SciptableWizard that does what I want, but having to apply it manually to every SVG file is time consuming. Is there any way I could just select a list of files and have it work on each one?