Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: PlaymakerNOOB on October 30, 2019, 01:06:51 PM

Title: Set Parent for Rect Transform action (SOLVED)
Post by: PlaymakerNOOB on October 30, 2019, 01:06:51 PM
There is an existing Set Parent, but when using it on a Rect Transform, you are greeted with the following warning:

Quote
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.
UnityEngine.Transform:set_parent(Transform)

Along with the scale of the object's x + y changing from 1 to 200+

Just looking for a set parent that works on a Rect Transform without changing the scale or generating an error.  Thanks!
Title: Re: Set Parent for Rect Transform action
Post by: djaydino on October 31, 2019, 09:39:49 AM
Hi.
Try Set Transform Parent (Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181))
Title: Re: Set Parent for Rect Transform action
Post by: PlaymakerNOOB on October 31, 2019, 10:38:08 AM
Good catch.  I was looking for Rect in the action name, but that action worked perfect!