playMaker

Author Topic: Set Parent for Rect Transform action (SOLVED)  (Read 5174 times)

PlaymakerNOOB

  • Full Member
  • ***
  • Posts: 219
Set Parent for Rect Transform action (SOLVED)
« 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!
« Last Edit: October 31, 2019, 10:38:25 AM by PlaymakerNOOB »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Set Parent for Rect Transform action
« Reply #1 on: October 31, 2019, 09:39:49 AM »
Hi.
Try Set Transform Parent (Ecosystem)

PlaymakerNOOB

  • Full Member
  • ***
  • Posts: 219
Re: Set Parent for Rect Transform action
« Reply #2 on: October 31, 2019, 10:38:08 AM »
Good catch.  I was looking for Rect in the action name, but that action worked perfect!