Hi, ! I find it strange now. No camera rotation or moving when I use static mesh, but the camera works OK when I use skeletal mesh. Though my code works when I use static mesh, but has many imperfect places.
Now in my new project I use skeletal mesh and 's code, the camera works well.