Is there possiblity to write my own plugin/extension to Unity editor ? I want to write plugin to generate map for me from xml file.
Answer
"Plugins" in Unity nomenclature mean native code (read: written in C/C++/Objective-C) DLLs. For what you want to do you more than likely don't need (or want, really) to use plugins.
For extensions, the Unity editor is very scriptable.
Are you asking if you can
- Populate a unity scene at editor time from an XML file
- Replace unity's default scene format entirely with an xml file.
Either way, what you're asking is more than possible. Here's an example of somebody completely replacing Unity's binary scene file format with a text representation: https://github.com/terravision/UnityTextScene
What you probably want to do is more likely just take advantage of their editor scripting tools. For example, look at ScriptableWizard. You can take that base code and then do something like load an XML file and spawn a bunch of prefabs, or whatever.
Pretty much the vast majority of things you see in the editor is scriptable. You can attach components, move/rotate/scale things, spawn prefabs, edit materials, all sorts of things.
No comments:
Post a Comment