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 Jeezker · Feb 06, 2015 at 02:20 AM · screendraglevel

Unity2d(mobile) Drag level screen left/right

Hello and thank you for clicking on this. I have 80 levels, and they are divided in 4 groups of 20. alt text

What I want to achieve is for the player to drag the scene left and right to bring into frame the group of levels he wants to play. Do you see what I'm saying?

I hope you understand the picture attached

Thank you a tonnnnn

selectionscreen.png (6.6 kB)
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 tannaz-rashidi · Aug 21, 2017 at 10:46 AM 0
Share

i have a same problem please tell me how did y this ? :-(

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by abi-kr01 · Feb 06, 2015 at 05:06 AM

considering you are doing it for mobile devices... you can use the pugin called Touch Kit

its free plugin which will take care of all the touch related problem like ,pinch zoom,dragging ,rotate with one finger etc

but if you dont want to use this plugin you can always use something like input.touch function where can put the difference of touch start and touch end to camera pos if user move finger in x -, you can put that difference in camera x same goes for y .

Comment
Add comment · Show 3 · 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 abi-kr01 · Feb 06, 2015 at 05:07 AM 0
Share

if its for web/pc you can use onmousedown and onmouseup difference

avatar image Jeezker · Feb 06, 2015 at 05:14 AM 0
Share

I don't how to do that I'm a noob

avatar image abi-kr01 · Feb 06, 2015 at 09:06 AM 0
Share

Then you just try touch kit follow the link and click download zip on middle rit .

avatar image
0

Answer by SergeiKu · Aug 21, 2017 at 11:23 AM

You can create a scrollview. In container you add the yours levels. try this https://unity3d.com/ru/learn/tutorials/topics/user-interface-ui/scroll-view

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

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

Related Questions

drag a UI panel keeping it with the screen bounds 2 Answers

getting world coordinates of mouse position 2 Answers

GUIkit black screen 1 Answer

Should I follow this tutorial? Unlockable lvl. screen 2 Answers

Pink tiles over Orthello 2D transparent tilemap 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