How would i tell if ui item is visible in ScrollingFrame

So i have an scrolling frame “horizontally” and i have some images with effect so how could i tell if the image is visible like the player when scrolling is seeing that image or frame?
i want to make like when the item is visible i will make the image do an little animation that i made
Video


i think i could make that with the CanvasPosition but is there any way other then the CanvasPosition?

1 Like

This will require a bit of math, this answer is sort of a suggestion you can possibly try…
Since your scrolling horizontally you can get the UI’s width and calculate when the player scrolls their current canvas position in which if it’s greater than the width of the UI it means it’s probably off the screen, if it’s less than it’s still on the screen.

I’m unsure of this answer, but you can try it out.

You can detect change by possibly using UI:GetPropertyChangedSignal

2 Likes

Thanks bro i didnt try it yet but i will, I would tell u if it work or didnt Thanks ;D

what you mean UI like the ui object that i want to check if it in the screen or not or u mean the scrolling frame ? Thanks

the ui object in the scrolling frame

Dude are you Einstein? XD Thanks a lot it worked how did you think about that?
:heart:

It worked!?! nice! I guess I’m just a smarty :nerd_face:
Good luck on your project/game!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.