Don'w work script written in C ++ in release version

Hi, when i launch(use LAUNCH to test my project) all work’s fine, but when i package and start release game file - a lot of things do not work(the resolution don’t changes in the menu, the C++ scripts don’t work), in version where i use only BP all works, but here…
What is the problem?