playMaker

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

sofianehamza

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
hello i m getting this warning message
« on: April 12, 2019, 06: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: 4119
    • View Profile
    • jinxtergames
Re: hello i m getting this warning message
« Reply #1 on: April 13, 2019, 06: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: 3581
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: hello i m getting this warning message
« Reply #2 on: April 13, 2019, 05: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: 17
    • View Profile
Re: hello i m getting this warning message
« Reply #3 on: April 13, 2019, 05:26:59 PM »
thanks for the prompt reply