Hello Guest

Author Topic: Text parent/child position problem  (Read 3339 times)

Vartib

  • Newbie
  • *
  • Posts: 21
    • View Profile
Text parent/child position problem
« on: December 03, 2013, 07:02:08 pm »
I'm having trouble with some text that I've set as the child of a button, which itself is a child of a control object for a specific type of menu in my game. To start off, here's what everything looks like with my current setup: http://i.imgur.com/fiFyBSu.png

To explain the hierarchy a little bit, "Right Click Menu" is the parent object and the semitransparent trapezoid, "Wall Button" is the black box, and "Wall Text" is the text. Wall Button and Wall Text have their coordinates and rotation set at (0, 0, 0). From my understanding with these settings Wall Text should be right on top of Wall Button, but instead it's lower.

This is what it looks like when I rotate Right Click Menu: http://i.imgur.com/bRJhntp.png  Compare that to the previous picture and you'll see that Wall Button doesn't seem to be acting as a child of Right Click Menu. There's also an issue that comes up when I change the position of Wall Button: it makes Wall Text move much more than it should. This can be seen in the following screenshot where I moved Wall Button up by 1 on the Y axis: http://i.imgur.com/LUgVz8h.png

It's probably just a matter of me messing up the settings somewhere, but I'm stumped and not sure what to make of it. Any help is much appreciated!

Vartib

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Text parent/child position problem
« Reply #1 on: December 04, 2013, 06:05:54 pm »
Just in case anyone runs into this in the future, I managed to move forward by removing my Wall Button game object and recreating it. The new button worked fine. I still have no idea what caused the problem in the first place though haha.