#Label briefly at wrong location when tweening position through C# code

1 messages · Page 1 of 1 (latest)

buoyant nymph
#

Do you first make the tween on ready?

fast haven
#

it's in a method kicked off in Ready(). I've tried to add some CallDeferred()s and awaiting a process_frame in various places in case it's not updating but it didn't help. I set the alpha to 0 in the inspector and then change the color to white after the tween starts and it still shows up... as white... before jumping to the right location.

#

I'm guessing it's a container issue, which means I'll have to do it another way.

buoyant nymph
#

Is the label inside a container?

fast haven
#

yes, a panel

#

panelcontainer

buoyant nymph
#

What about just using a normal panel

fast haven
#

I don't see it in the wrong location anymore.. but I'll have to tweak the sizes. it used the size of the panelcontainer to determine how far to scroll. I can just use the viewport width instead.

buoyant nymph
#

Okay 👍