x


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...

more ▼

asked Jul 09 '12 at 06:20 AM

zillion gravatar image

zillion
62 3 11 17

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Mar 28 at 01:29 PM

Threepywood gravatar image

Threepywood
1

(comments are locked)
10|3000 characters needed characters left

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!

more ▼

answered Sep 12 '12 at 09:53 PM

Zephyr_64 gravatar image

Zephyr_64
1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1954
x411
x21

asked: Jul 09 '12 at 06:20 AM

Seen: 970 times

Last Updated: Mar 28 at 01:29 PM