First, in the U3d editor to delete the Fpscontroller game to the image of the camera;
Second, in the U3d editor, the Cardboardmain game is added to the sub-object like Fpscontroller;
Third, modify the script:
1. Delete the Rotateview method call in Firstpersoncontroller script;
2, in the Cardboardhead in the Updatehead, modify the Fpscontroller on the transform of the y-axis of the steering;
Above, the head steering data can be completed using the cardboard trace to control the y-axis steering of the first person game to the image, (due to the use of Cardboardmain, making the Cardboardhead directly usable)
3, in the Firstpersoncontroller script to find the control of the first person to move the place, with the joystick rocker key value substitution;
4, in Firstpersoncontroller feet to find the control jump place, with the right side of the lower key keys in the handle replaced;
You can use the joystick joystick to control the front and back movement of the first person character body, and use the buttons on the right side of the handle to control the first person character jumps;
Retrofit U3D First person controller to fit cardboard+ Bluetooth handle control