Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by konashadow · Dec 05, 2012 at 05:12 PM · androidjoystickfirst-person-controller

Android Joystick

Hey everyone. Im trying to make a first person controller for unity. I cant get the prefabs in the standard assets (mobile) to work. I have tried to add the single joystick to my player, but it won't appear. Anyone have any ideas? Thanks

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ben-Stoneman ♦♦ · Dec 06, 2012 at 02:56 PM 0
Share

Hi $$anonymous$$ona,

What version of unity are you using?

Are you after single analogue movement?

avatar image konashadow · Dec 06, 2012 at 04:00 PM 0
Share

Im using unity 3.5 and Im just looking for some joystick and joystick script that i can use to move a player

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by LordZephyr · Dec 06, 2012 at 04:59 PM

Hi,

The best thing that I have done was to use the prefab first person joysticks that came with the Standard Assets (Mobile). You must load the mobile standard assets to be able to load in the prefabs of the joysticks that are available for the Android and the iOS operating systems. One joystick controls the view of the player and the other controls the movement of the player. If you wish to remove one of the joysticks, it is really easy to do that. If you want to change what the joystick does, that is easy as well. You simply have to replace the script for the joystick that you want to change.

Now, to get to what I think your problem is: From your description, it sounds like you can't get your joysticks to work because you can't see them. Here's the trick that I figured out the hard way. First, delete the first person prefab that you already put into your scene. DO NOT drag a new one from your (mobile) assets to the screen. You MUST drag a new First Person Controls to the Hierarchy and not to the Scene window. If you drag it to the Scene window, the parts will be in the wrong location. Once it is there, DO NOT MOVE IT!!! If you move the entire prefab, the joysticks on the screen will move as well and then you won't be able to control your character. Open the parent prefab of the First Person Controls in the Hierarchy and then select the First Person Controls child. That you may move without moving the joysticks. You will see the left and right joysticks as the children, also. They MUST stay where they land when you first place your first person prefab. If you want to move the first person to a starting position for your level you must move only the child First Person Controls. Keep your eyes on the joysticks in the game view. If they start to move, undo your move and re-choose your capsule so that your joysticks don't move. Once you get the capsule to the position you want, save the scene and the game and you should have no problem playing. Test it out.

I hope this helps.

Tom

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image konashadow · Dec 06, 2012 at 09:32 PM 0
Share

Thank you so much! This was the one setback that was stopping me in advancing in my project! It works fine now.

avatar image rohit_garg · Apr 11, 2013 at 09:28 AM 0
Share

i am implementing the same and succeed in doing that but my movement and camera rotation is not smooth. can you please suggest any way?

avatar image LordZephyr · Apr 29, 2013 at 01:17 PM 0
Share

I am so sorry it took me so long to get back to you, @rohit_garg.

From what I can tell by your description, you might have too many prims (objects with too many sides) in your scene. Try to take your first person controller exactly as it is and put it into a scene that just has a plain so you can move around and see if there is any jerkiness to your movements.

Let me know if this works. If not, we could try something else and I promise not to take as long getting back to you.

$$anonymous$$

avatar image rohit_garg · Apr 30, 2013 at 06:14 AM 0
Share

@lordZephyr thanks for your reply. I found my error. Actually the fbx file i imported in unity was carrying the whole history from the starting. Thats why scene was giving jerkness.

avatar image KarmelV31 · Oct 10, 2019 at 05:36 PM 0
Share

Hey, but i have problem i don't have this standar assest?

avatar image
0

Answer by idiot333 · Apr 18, 2015 at 01:58 PM

There's another so;ution for implementing controls.

[https://www.youtube.com/watch?v=CqvK_YiKAkY][1]

this is a link to tutorial for touch input manager which is on asset store and making controls is very easy in that.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

14 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Mobile Joystick - How to increase the touch area 0 Answers

UI joystick changes place after screen orientation 1 Answer

OnDrag OnPointerDown OnPointerUp does not work 1 Answer

how to use the dual joystick from the prefab and how can i put it in my first person controller? 4 Answers

How to use Joystick from Standard Assets? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges