Posts

Showing posts from August, 2013

Extending the Unity Editor

Image
Its been a while since my last post, as I have been pretty busy with a new job and learning new tools. After going through a bunch of tutorials I have familiarized myself with the Unity3d workflow and C#, and busied myself writing art tools for my new workplace. The Unity Editor is pretty fun to work with, and has a very extendable interface. With just a few lines of code (C# by preference) it's possible to create a customized interface window. Here is a bare bones example of how to make a custom window in Unity 4.2, and make it do stuff. The example is written in CSharp and does a very simple task, makes a window and tells you the name of whatever you have selected. // Example Window- Get the name of whatever game object // that is currently selected using UnityEngine; using UnityEditor; public class ExampleWindow : EditorWindow { // Strings string objectName = ""; // Update specific variables // Using the repaint flag, GUI updates are done once, rath...