- Home /
First Person Controller Mobile does not work?
Most probably a simple fix.. But I am new to iOS development. I have a very simple terrain with the "First Person Controls" prefab from the 'Standard Assets (mobile)" package. Once he is in the scene, and I have had a successful build to my iPhone, I am unable to move the FPC? No joysticks are shown, and no matter where I tap on the screen, he will not move. The scene still looks through the camera that is imported with the FPC Mobile prefab though...
Answer by Zephyr_64 · Sep 12, 2012 at 09:53 PM
I was having a similar problem as well. After creating a simple test level and comparing it to Unity's FirstPersonSetup scene, I realized that the TouchZone coordinates and Pixel Inset values for the Joystick script and GUITexture respectively (for each of the two sticks) jump to large values when pushing play. After some testing, I found that moving the "FirstPersonControl" prefab to position 0,0,0 solved the problem and I was able to move around in the Xcode simulator and was able to see the touch zones fine.
Hope this helps!
Answer by Threepywood · Mar 28, 2013 at 01:29 PM
I removed this line in Joystick.js
gui.color.a = 0.025;
After that it works for me.I have changed the transform values only for the uppest GameObject.
Answer by Pacho · Aug 10, 2013 at 03:37 AM
the code has a reference to a spawn position. Leave the first person controller at 0,0,0 and create a empty gameobject name "PlayerSpawn" at the position you want your player to begin. That works for me
Your answer
![](https://koobas.hobune.stream/wayback/20220613073911im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Using the accelerometer to move a player as the real user walks 2 Answers
Raycast from player to touch point? 2 Answers
Third party patching software for mobile? 0 Answers
Vertical mobile input 0 Answers
Mobile 2.5D MMO Game Development Advice 0 Answers