When these events are called, nothing happens.
UIPageLayoutBug.rbxl (60.9 KB)
Expected behavior
Every time a new page enters or leaves, the respective event is supposed to fire.
A private message is associated with this bug report
When these events are called, nothing happens.
Expected behavior
Every time a new page enters or leaves, the respective event is supposed to fire.
A private message is associated with this bug report
Admittedly the behavior is a bit confusing here, but considering the description in the documentation, it is working as intended. Considering some people may be relying on it serving its intended purpose, I won’t be modifying its behavior at this time.
Fires when a page comes into view, and is going to be rendered.
In other words, these get triggered when the UI element becomes visible rather than when the page number is changed. In your case this is never triggered, because you don’t have clipping enabled and therefore all elements are always “Visible”, at least to our renderer.
If you want to keep track of the currently selected page, I recommend instead listening to changes in the “CurrentPage” property.
local currentPage = pageLayout.CurrentPage
pageLayout:GetPropertyChangedSignal("CurrentPage"):Connect(function()
print(`Left { currentPage }`)
currentPage = pageLayout.CurrentPage
print(`Entered { currentPage }`)
end)
Please, for the love of UI designers, add what you said to the documentation! Either as a new event or just more explanation on this one
I agree. The descriptions are incredibly vague and need updating.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.