Custom editor for game data

I have a need to edit various details about my game data. I thought it would be easy enough to whip up a secondary GUI app that uses my C# assemblies but I’ve been banging my head on this for awhile today.

So a couple questions:

  1. Is it possible to build a stand-alone app alongside my existing C# scripts in Unity’s MonoDevelop? (For the record I’ve been toying with GTK2 but it won’t make a pretty standalone app on my Mac).

  2. Is there a better way to do what I’m attempting?

I’m more than happy to change my approach to this problem if there’s a better way to do it. I did manage to reference the C# assembly in Xamarian so I may go that route if it’s the only one I can get working. It’s just very clunky at the moment.

Thanks!

Make it in Unity?

–Eric

Very noob question up next… ready? … wait for it … do you have a link that might help me get started on that one? I had a feeling it was probably in there but my skills in Unity don’t pay the bills yet.

I don’t know what you’re wanting to edit exactly, but using OnGUI code it’s not that hard to make basic GUI stuff, particularly if you use GUILayout, so probably you’d look up the GUI scripting guide in the docs. If there’s no reason why the data editor needs to run outside Unity, then I’d recommend making a Unity custom window. This allows additional controls using EditorGUI/EditorGUILayout that can simplify a lot of stuff.

–Eric

Thanks. I’ll dig around a bit with the GUI scripting guide.

I need to edit lists of game data because I’ll be using that data to setup parameters for dynamically generated dungeons, attributes for the monsters that will populate those dungeons, skills for the monsters, and so on. It’s a pretty hefty amount of game data.

Update:
This is exactly what I was looking for! Thanks :slight_smile: