my custom shader in plugin does not work properly

The shaders does not work until I use shift+ctrl+. to force it to recompile.

Each time restart the editor, I have to put a space in usf and press shift+ctrl+. to let it works

Just wonder if there are any approch to do shift+ctrl+. in code.
Or is there any configs I miss.

second question:
The shaders do postprocess effects. It works in editor viewport, but only shows black screen in standalone game and packaged game.

help!
help!

Good news, the problem is according to Serialize(), lost some variables.

However, the shader still has some problem. packaged game shows the postprocess effect but anything else is totally black

Running under editor is fine.