Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: sofianehamza on April 12, 2019, 09:59:48 PM

Title: hello i m getting this warning message
Post by: sofianehamza 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.
Title: Re: hello i m getting this warning message
Post by: djaydino on April 13, 2019, 09:50:11 AM
Hi.

I believe you can use 'Set Parent 2'

You can find it on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)
Title: Re: hello i m getting this warning message
Post by: Alex Chouls 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.
Title: Re: hello i m getting this warning message
Post by: sofianehamza on April 13, 2019, 08:26:59 PM
thanks for the prompt reply