diff --git a/Scripts/Layout/ScrollSnapBase.cs b/Scripts/Layout/ScrollSnapBase.cs index 3cd3243..b7aea59 100644 --- a/Scripts/Layout/ScrollSnapBase.cs +++ b/Scripts/Layout/ScrollSnapBase.cs @@ -476,7 +476,25 @@ namespace UnityEngine.UI.Extensions _moveStarted = false; } - #region Interfaces + /// + /// Returns the Transform of the Currentpage + /// + /// Currently selected Page Transform + public Transform CurrentPageObject() + { + return _screensContainer.GetChild(CurrentPage); + } + + /// + /// Returns the Transform of the Currentpage in an out param for performance + /// + /// Currently selected Page Transform + public void CurrentPageObject(out Transform returnObject) + { + returnObject = _screensContainer.GetChild(CurrentPage); + } + + #region Drag Interfaces /// /// Touch screen to start swiping ///