|
|
|
|
|
|
|
|
|
|
public class CharacterToolingUI : EditorWindow |
|
|
|
{ |
|
|
|
private static string[] toolbarNames = null; |
|
|
|
static string[] toolbarNames = null; |
|
|
|
public Object keypointTemplate; |
|
|
|
Object keypointTemplate; |
|
|
|
|
|
|
|
GameObject selection = null; |
|
|
|
int toolbarSelection = 0; |
|
|
|
|
|
|
string status = "Unknown"; |
|
|
|
|
|
|
|
private void OnSelectionChange() |
|
|
|
void OnSelectionChange() |
|
|
|
private void OnInspectorUpdate() |
|
|
|
void OnInspectorUpdate() |
|
|
|
{ |
|
|
|
Repaint(); |
|
|
|
selection = Selection.activeGameObject; |
|
|
|
|
|
|
window.Show(); |
|
|
|
} |
|
|
|
|
|
|
|
private void OnGUI() |
|
|
|
void OnGUI() |
|
|
|
{ |
|
|
|
if (selection != null && selection.GetType() == typeof(GameObject)) |
|
|
|
{ |
|
|
|