Camera blocking volume

Hi,

I need to define the space where camera (what I put to editor) can be. So I used Camera blocking volume to don’t let camera leave this area.
But it doesn’t work automatically. What I have to do ? I am using C++ instead of blueprints atm.

Thanks