playMaker

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

PlaymakerNOOB

  • Full Member
  • ***
  • Posts: 214
    • View Profile
Set Parent for Rect Transform action (SOLVED)
« on: October 30, 2019, 10:06:51 AM »
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, 07:38:25 AM by PlaymakerNOOB »

djaydino

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

PlaymakerNOOB

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