- Home /
Using C++ libraries for Editor extensions
Hey all,
I'm testing out the feasibility of using unity for a mini-game based on an already established IP. Many of the assets are in a proprietary format (rigs, meshes, animations, etc.), therefore the core engine already has C++ libraries to parse the data.
I would really like to tap into this existing codebase by writing custom asset importers for each type, but I haven't seen any docs on using C++ for editor plugins. Is this possible? Or do I need a Unity license with source access?
Note: I have written plugins in C/C++, but only for runtime. So I'm familiar with the process, just can't find the info for the editor.
Thanks!
If I recall correctly, some Asset Store items uses closed source editor extensions, ($$anonymous$$ixamo springs to $$anonymous$$d), so I believe it is very possible (without source access), but I don't know how to actually do it myself :(
I had a quick look around the documentation and would guess the syntax would be similar to the desktop implementations of plugins.
Prime31 plugins seem to just specify "using Prime31;" at the top of the source to link to their .dll, but I don't know whats actually in the dll. $$anonymous$$aybe you can compile a dll with a class then access members with just "using XYZ;"
Sorry I can't be more help :/
That's a great idea that I didn't think of. I'll see if compiling a dll and using it in my editor scripts works. Cheers!
Your answer
Follow this Question
Related Questions
Is it possible to make a C# script variable changeable in the Editor, without being public? 1 Answer
In-Game Level Editor 1 Answer
my facebook web player game won't load on chrome... 2 Answers
Why can't I pull my model into the Unity scene? 2 Answers
Meta data wants to be mapped elsewhere when importing assets. 0 Answers