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
2
Question by John Sartain · Apr 09, 2015 at 10:05 AM · joystickcontrolstandard assetscrossplatformimplementation

how to use Cross platform input MobileSingleStickControl

unity 5 I want to move a object or sprite using a joystick. I'm using the standard assets that came with unity 5. I must be doing something wrong. How do I use the mobile single stick control? Ive tried dragging the prefab to the hierarchy and the main camera neither worked. Also trying to figure this out I visited a unity Answers page and they said to a event system. I tried it made the joystick react to touch but it stuck the joystick in the corner and i was unable to move a object.

Comment
Add comment · Show 1
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 captaincombo · May 20, 2015 at 05:33 AM 0
Share

Same problem here. Can someone explain it in details? I would be indeed appreciated.

5 Replies

· Add your reply
  • Sort: 
avatar image
5

Answer by Saldrac · Apr 14, 2015 at 10:20 PM

Go to GameObject->UI->Canvas

That should create a EventSystem in your hierarchy :)

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
avatar image
2

Answer by Anish Kumar Kodeboyina · Jul 09, 2015 at 06:53 AM

https://www.youtube.com/watch?v=l7YiASYgDC0

watch this video. I hope it clarifies your doubt.

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
avatar image
2

Answer by ulissescad · Jan 11, 2016 at 10:05 AM

Olhando os exemplos de veiculos fiz esse script e fucionou bem para o que foi proposto. Primeiro importe a biblioteca dos assets standards e depois basta recuperar a posicao como foi feito no script abaixo. MovX é uma variável para gerenciar o movimento pelo inspector.

using UnityEngine; using UnityStandardAssets.CrossPlatformInput; using System.Collections;

public class Mov : MonoBehaviour {

 public float MovX;

 // Use this for initialization
 void Start () {

    // Joystick.


 
 }
 
 // Update is called once per frame
 void Update () {

     Debug.Log(Input.GetAxisRaw("Horizontal"));

     this.transform.Translate(CrossPlatformInputManager.GetAxis("Horizontal") * MovX * Time.deltaTime, 0, 0);

 }

}

Comment
Add comment · Show 1 · 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 ulissescad · Jan 07, 2016 at 04:19 PM 0
Share

Looking at the examples of vehicles made ​​this script and fucionou well for what was proposed . First import the library of standard assets and then simply recall the position as was done in script below. $$anonymous$$OVX is a variable for managing the movement by the inspector .

using UnityEngine ; using UnityStandardAssets.CrossPlatformInput ; using System.Collections;

public class $$anonymous$$ov : { $$anonymous$$onoBehaviour

 public float $$anonymous$$OVX ;

// Use this for initialization void Start ( ) {

    // Joystick.



}

// Update is called once per frame void Update () {

     Debug.log ( Input.GetAxisRaw ( " Horizontal "));

     this.transform.Translate ( CrossPlatformInput$$anonymous$$anager.GetAxis ( " Horizontal " ) * * $$anonymous$$OVX Time.deltaTime , 0 , 0);

} }

avatar image
1

Answer by AiRobotMedia · Aug 12, 2018 at 01:19 AM

Locking Cursor will prevent joysticks from working with Standard Assets Cross Platform Input.

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
avatar image
0

Answer by usthis · May 28, 2018 at 07:01 AM

only working jump when using MobileSingleStickControl prefab. i cant move. (unity 2018) whats wrong pls

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

9 People are following this question.

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

Related Questions

How to make camera position relative to a specific target. 1 Answer

Crossplatform Joystick cicular movement instead of square? 2 Answers

on screen joystick problem 1 Answer

Not Able to see Joystick & Button after deploying game to Android Device 1 Answer

Moving mobile joystick 5 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