playMaker

Author Topic: hello i m getting this warning message  (Read 1695 times)

sofianehamza

  • Playmaker Newbie
  • *
  • Posts: 35
hello i m getting this warning message
« on: April 12, 2019, 09:59:48 PM »
when I create a game object and set it, parent, I get this warning message

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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: hello i m getting this warning message
« Reply #1 on: April 13, 2019, 09:50:11 AM »
Hi.

I believe you can use 'Set Parent 2'

You can find it on the Ecosystem

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: hello i m getting this warning message
« Reply #2 on: April 13, 2019, 08:07:56 PM »
The next update will also fix this.
I've attached the new version of SetParent with an option for worldPositionStays.

sofianehamza

  • Playmaker Newbie
  • *
  • Posts: 35
Re: hello i m getting this warning message
« Reply #3 on: April 13, 2019, 08:26:59 PM »
thanks for the prompt reply