Nextrek
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
using System;
using UnityEngine;
using UnityEditor;
using Mixamo.UnityStore;
public class MixamoStoreWindow : EditorWindow
{
System.DateTime lastOnGUITime = System.DateTime.Now;
private const string MXE = "pro";
private MixamoStore Store
{
get
{
if( _store == null )
_store = new MixamoStore(this , MXE);
return _store;
}
}
[MenuItem ("Window/Mixamo Store #%1")]
static void Init()
{
MixamoStoreWindow window = (MixamoStoreWindow) EditorWindow.GetWindow(typeof(MixamoStoreWindow), false, "Mixamo Store");
window.wantsMouseMove = false;
window.Show();
}
void OnGUI()
{
Store.OnGUI();
}
void Update()
{
if (this == EditorWindow.mouseOverWindow && ((System.DateTime.Now - lastOnGUITime).TotalSeconds > (1.0f / 20.0f)))
{
lastOnGUITime = System.DateTime.Now;
this.Repaint();
}
Store.Update();
}
void OnDestroy()
{
Store.OnDestroy();
}
private MixamoStore _store = null;
}
|
Revision |
Author |
Commited |
Message |
83
|
FMMortaroli
|
Tue 13 May, 2014 11:32:51 +0000 |
|