Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Custom LayoutGroup repositioning child at unexpected time in unexpected way

$
0
0
Hi all,

So I'm mucking around a bit with a custom Layout Group and found something... interesting. When I drag and drop a child object into the group, the child always gets repositioned to a default value. Normally this wouldn't be a big deal, but I actually need the original position in my Layout Group. It's a bit hard to explain without code, so bear with me.

My drop code, attached to the "droppee" child item:
Code (csharp):
  1. public void ApplyDrop(Transform dropTransform){
  2.     Debug.Log("pre-drop:...
Custom LayoutGroup repositioning child at unexpected time in unexpected way

Viewing all articles
Browse latest Browse all 23263

Latest Images

Trending Articles



Latest Images