Hello, guys!
I’m not sure, if it is a bug or not.
Is there a difference between go.set_parent and gui.set_parent in terms of transforms and coordinates behavior?
I have some code that works for me, when I use it in gameobject’s context. But when I move this code to gui part, it stops working.
I’m shooting flowers at the rotating circle. When the flower reaches the circle, I’m calling go.set_parent with keep_world_transform set to true. And my flower starts rotating with the circle. Nice, as I expect it to. I refactored my code to get rid of the gameobject part and move it to gui.
When I call gui.set_parent again with keep_scene_transform set to true, the flower attaches to my circle, but loses its rotation part. It is expected behavior or bug?
UPD: I created the minimal project to demonstrate gui.set_parent behavior.Test01.zip (392.9 KB)