Author Topic: Spring Panel World Map?  (Read 1239 times)

Majicpanda

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 83
    • View Profile
Spring Panel World Map?
« on: November 27, 2013, 08:19:18 PM »
I have a large map with lots of points of interest im wanting to use springpanel to center onto the current object.

How do i go about doing it with the following hierarchy?
-Panel (uidraggable) + (SpringPanel) + (Soft Clipping)
-- UISprite (World Map)
-- Empty GO
--- Town 1
--- Town 2
--- Dungeon 1

In code I want to center on Town 1, how do you get the position to pass to the SpringPanel? Do I need to structure this differently?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Spring Panel World Map?
« Reply #1 on: November 28, 2013, 01:09:38 AM »
Simply attach UICenterOnClick to your object.