playMaker

Author Topic: [SOLVED] Changing parent of UGUI Object  (Read 2748 times)

inyourbus

  • Playmaker Newbie
  • *
  • Posts: 43
  • In Your Legends
    • In Your Legends
[SOLVED] Changing parent of UGUI Object
« on: May 02, 2015, 12:37:07 PM »
When trying to change parent and reset position of a UGUI object I get this error.

Parent of RectTransform is being set with parent property. Consider using the SetParent method instead, with the worldPositionStays argument set to false. This will retain local orientation and scale rather than world orientation and scale, which can prevent common UI scaling issues.

Is there a better way for me to do this?
« Last Edit: May 02, 2015, 03:45:22 PM by inyourbus »
One step at a time..

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Changing parent of UGUI Object
« Reply #1 on: May 02, 2015, 02:56:01 PM »
Hi,

 yes, I created a custom action to cover this new case. It's on the Ecosystem:

Set Transform Parent

Bye,

 Jean

inyourbus

  • Playmaker Newbie
  • *
  • Posts: 43
  • In Your Legends
    • In Your Legends
Re: Changing parent of UGUI Object [SOLVED]
« Reply #2 on: May 02, 2015, 03:44:54 PM »
Thanks for the heads up Jean.

Worked perfectly.
« Last Edit: May 02, 2015, 07:08:49 PM by inyourbus »
One step at a time..