Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: rechronicle on November 15, 2019, 12:41:02 PM

Title: Grid Layout Group Error Message when using Set Parent action[SOLVED]
Post by: rechronicle on November 15, 2019, 12:41:02 PM
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.
Title: Re: Grid Layout Group Error Message when using Set Parent action
Post by: jeanfabre on November 21, 2019, 02:41:38 AM
Hi,

 yep :) that's the one.

Bye

 Jean