I want to create a panel drag feature where i can horizontally drag a sprite (thats on the edge of the screen) with a panel child and it will snap to the center of the screen.
I got everything working except the snapping part.
I was trying to make use of the UICenterOnChild script. but the script wouldnt turn on when i attached it to the panel and ran the project.
Do i need to attach it to the panel's parent panel (MainMenuPanel)?