playMaker

Author Topic: Grid Layout Group Error Message when using Set Parent action[SOLVED]  (Read 1184 times)

rechronicle

  • Full Member
  • ***
  • Posts: 119
  • Mystvaldia
    • Indie RPG Creator
Hello,

what I'm doing here is that I want to make each child object of Grid Layout Group GO as a health point. So, 1 child GO = 1 health.
The error happens when I create the game object and set parent to it.

ERROR 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."

It's true that the newly created game object somewhat has a gigantic size compared to other child GO. How to fix it?


Thank you!



EDIT: Nevermind, after searching long enough, you only need 'Set Transform Parent' action from Ecosystem.
« Last Edit: November 21, 2019, 02:41:50 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Grid Layout Group Error Message when using Set Parent action
« Reply #1 on: November 21, 2019, 02:41:38 AM »
Hi,

 yep :) that's the one.

Bye

 Jean