static void Init () { myWindow = (VertexPainter2)EditorWindow.GetWindow (typeof (VertexPainter2)); myWindow.Show(); myWindow.autoRepaintOnSceneChange = true; myWindow.resetLockedObject(); }
static void OnDestroy(){ if(myWindow){ // grab window instance myWindow.paintVertexColors = false; myWindow.applyRandom = false; myWindow.applySolidColor = false; myWindow.resetLockedObject(); } } // OnDestroy()
static void Init() { myWindow = (VertexPainter2)EditorWindow.GetWindow (typeof (VertexPainter2)); myWindow.Show(); myWindow.autoRepaintOnSceneChange = true; myWindow.resetLockedObject(); }