Author Topic: Fade in/out UIGrid  (Read 3333 times)

immortant

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Fade in/out UIGrid
« on: June 26, 2014, 09:29:37 PM »
I try to fade in/out grid in pic 1. by TweenPosition.(ResetToBeginning, PlayForward, PlayReverse)
But Problem is sometime when move grid.
Offset Y of Grid have wrong offset but in inspector same value offset @ start.
or It have another way to do this, Thank you in advance.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Fade in/out UIGrid
« Reply #1 on: June 27, 2014, 12:59:04 PM »
So what's actually moved? You seem to have grid as a child of the sprite, which seems odd to me. Grid generally goes right underneath the scroll view. Do you have a scroll view in there, or just the grid object you're moving? Do you enable any game objects?

immortant

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Fade in/out UIGrid
« Reply #2 on: July 01, 2014, 09:34:01 PM »
  At first all 4Dock are disable when click button dock below it will enable specific dock and disable after click again.
I want to move grid(in hierarchy) when click enable.(like fade in/out)

Thank you for your fast response.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Fade in/out UIGrid
« Reply #3 on: July 02, 2014, 05:21:27 AM »
Yeah... honestly those screenshots don't tell me anything. Only odd thing I see is your scale of your button. Why is it 1.4 on the Y? It should be (1, 1, 1). You also haven't actually answered my first question. What's actually moved?

Also note that you should move the object first, and then enable it. If you enable a panel, then change its position you may run into issues.