Author Topic: Panel Softclipping Error : Children not rendering until "moved" by hand  (Read 5912 times)

huevoquilmes

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 10
    • View Profile
Hello,

I saw this problem in a lot of older posts, but none of the resolutions there helped me.

My hierarchy is as follows:

Root
     PanelA
     PanelB

Each panel, has soft clipping, and between the 2, cover up the whole screen (see below screenshot)



What im trying to do, is for example, instantiate a new widget, as a child of panel B, but off the screen (and off the clipping area), and have it tween into position. Whats happening is, after it gets to its position, it doesnt show in the game scene, even though its there. It will only show if you slightly move one of its child objects, or disable/enable the whole widget.

Here is a screenshot from when the panel just finishes moving into place (and nothing is showing :( )



And after moving it by hand, in the hierarchy, it finally shows



Whatever help I can get with this will greatly help me. If any other information or images are needed, I can post them asap. (Im using NGUI 3.9.8 & Unity 5.4) I tested with older versions of both NGUI & Unity, without luck

Thanks!
« Last Edit: May 31, 2016, 02:42:46 PM by huevoquilmes »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
How do you move the panel into place? I'm surprised this is still an issue after so long. If you can create a simple repro case for me to have a look at, I'd love to see what I can do about it.

huevoquilmes

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 10
    • View Profile
Hey Aren, thanks for the quick reply.

It has a TweenPosition attached to it, and as soon as its instantiated, it tweens into position (inside of the scrollview).

I'll make the repro case in a sec & upload it.

huevoquilmes

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 10
    • View Profile
Here is the link to the repro case:



If you open the scene "MenuScene", and when the menu shows, press "Play", you will see the panel that comes in, not being shown properly.

Thanks again!
« Last Edit: June 04, 2016, 02:21:58 PM by ArenMook »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile