Author Topic: Google Maps like behaviour [Help please]  (Read 1645 times)

DCC

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 3
    • View Profile
Google Maps like behaviour [Help please]
« on: September 28, 2014, 07:18:02 PM »
Hi guys, I hope this is in the correct section!

My project requires me to include maps to our application (not a game) and I have been trying for the past 12 hours to develop a method to prove my concept. My idea is: I have a panel with a scrollview inside it and then 9 map tiles inside of that. I move the scrollview around and when it becomes invisible I change the position of the object to the start of the row. This method works fine with 1 axis but as soon as I try x and y.. I have no idea how to even start with this and have an effective method that wont fail. Any advice or help would be majorly appreciated! Down below is an example of the layout I use.

Purple: UIPanel
Orange: UIScrollView
Green: Collider(MapTile)

In return for your help I will make this a full plugin free on the asset store!


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Google Maps like behaviour [Help please]
« Reply #1 on: September 29, 2014, 07:15:29 AM »
Have a look at the UIWrapContent script. It's an endless scroll view that works by repositioning content. You'll need to do something similar and make it work in 2 dimensions instead of 1.

DCC

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Google Maps like behaviour [Help please]
« Reply #2 on: September 30, 2014, 07:49:11 PM »
Hmm a UIWrapContent that supports multiple dimensions wouldn't be a bad idea for NGUI I think. Thanks for your help! I'll post my results.