- 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
![](https://koobas.hobune.stream/wayback/20220612082801im_/https://answers.unity.com/themes/thub/images/avi.jpg)