Hey guys!
I’ve written my custom script for dragging UI objects within an area provided by a RectTransform. I worked with the script with the UI in “Screen Space - Overlay” mode and GetWorldCorners got me the actual world coordinates of the corners. Everything looked good.
I currently need a particle effect in the game, so I set the UI to “Screen Space - Camera”, but the GetWorldCorners method is currently returning the RectTransform’s corners relative to the Canvas position. When I set the position of anything to one of the corners they end up in completely different places than the RectTransform.
Is anyone familiar with this problem? It seems this guy, (2nd paragraph) had the same problem but no-one had an answer. Maybe one of you guys do?
Greetings & thanks in advance!