Author Topic: Snapping with Scroll view camera  (Read 1988 times)

Anadin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Snapping with Scroll view camera
« on: September 16, 2012, 06:59:10 AM »
Hi, I am currently using the Draggable panel with UI grid but as I want to put 3D objects in the slot, it might make more sense to use the draggable camera functionality as I can place a depth mask on an object to fade off the 3D objects inside the view rectangle. My only issue is I can't see how to make the UITable snap like I can with the UIGrid - is this built in functionality or would we need to add it?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Snapping with Scroll view camera
« Reply #1 on: September 16, 2012, 06:49:56 PM »
You would need to add it. Snapping was only added as an example for the panel-based approach. When you do, you will want to use TweenPosition instead of TweenPanel (or whatever is used in the snapping script -- I'm away from home right now so can't point you to the exact line).

Anadin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: Snapping with Scroll view camera
« Reply #2 on: September 16, 2012, 11:16:08 PM »
Thanks!