Author Topic: Inventory Object Meshes not moving with panel  (Read 4081 times)

Arowx

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Inventory Object Meshes not moving with panel
« on: November 06, 2012, 02:34:30 PM »
Hi can you help, I have a panel that animates in, and all of it's child items move with it, apart from the none GUI game objects I show as inventory items, they do not move?

Hierarchy

UI Root
-Camera
--Anchor
---Panel ( animated )
----NGUI Widgets
----Inventory Items

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Inventory Object Meshes not moving with panel
« Reply #1 on: November 06, 2012, 04:37:13 PM »
If the widgets are children of an animated panel, they will move with the panel. Unless you have an anchor on them.

Arowx

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: Inventory Object Meshes not moving with panel
« Reply #2 on: November 06, 2012, 04:41:50 PM »
The NGUI sub components/widgets are moving but the game objects that are the inventory items, 3d models do not?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Inventory Object Meshes not moving with panel
« Reply #3 on: November 06, 2012, 05:06:32 PM »
Unless they're parented, they won't move.

Arowx

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: Inventory Object Meshes not moving with panel
« Reply #4 on: November 06, 2012, 05:18:38 PM »
My bad static batching enabled DOH!