- Home /
Question by
maliangjian · Jun 13, 2016 at 03:11 AM ·
editorcompile
Callbacks Lost after scripts compiled.
Hi , I lost All the callbacks in my custom editor Every time the scripts is compiled.
for example:
class MyEditor :EditorWindow
{
public System.Action myCallBack;
public static void ShowWindow(Action callBack)
{
myCallBack=callBack;
}
}
After I Changed My Code, "myCallBack" lost and I Need to close the editor and open it again...
Is there a solution for this issue?
Comment
Your answer
