The place to chat about all things UI Extensions :D - Keep it clean and be friendly to everyone.
ContentScrollSnapHorizontal
has set it's enable to false. Upon enabling this component in the editor (in edit mode, not play mode), I start getting error spam in the console. Also, when adding children to the content using Awake, it works, but if I delay it (in Start for instance), it then doesn't work or snap. What I seem to need to do is enable the snap, and update the layout, but this still causes an exception, since there's no children at the start.
Hi all, firstly thanks for the great tools/extensions!! I am just dipping my toe with the conflict manager and I have a quick question:
Ive prefab'd a horzontal slider (holder) to populate dynamically. Im struggling with trying to set the ParentScrollRect through code in my loop. I have a vertical scroller in the scene awaiting the prefab objects.
Any suggestions of best way to tackle? ps ive used the search and found a post of similar but ultimately not ending in a strategy
Big push tonight to get some of the finishing touches for the next release of the UI Extensions in, including:
(one day I will remember to only add or fix examples in Unity 2018, because Unity... Backwards compatibility is fun...)
So hopefully should have the 2.2.3 release out shortly after a few last checks through the worklist.
Since the move to UPM, the team have been able to react quicker and push out fixes a lot easier, without affecting previous installation (whilst still adhering to Unity's backwards compatibility pattern). So it is with great news we announce this new release, faster that ever :D (and thanks to UPM, easier to upgrade than ever).
Be sure to also check out the "Examples" option in the Package Manager window to import the samples to your project.
Be sure to logon to the new Gitter Chat site for the UI Extensions project, if you have any questions, queries or suggestions
Much easier than posting a question / issue on YouTube, Twitter or Facebook :D
UIExtensions Gitter Channel
Examples now have their own package, this simplifies their use and deployment. Especially in 2019 with the UPM deployment.
Hello! It maybe very simple but I can’t get the centered/selected page number in the Horizontal Scroll Snap.
I searched on the web but still not able to get this variable.
Could you tell me step by step how to access this variable from a script?
Thank you very much for this great extension!
public HorizontalScrollSnap hss;
// Start is called before the first frame update
void Start()
{
hss = GetComponent<HorizontalScrollSnap>();
}
// Update is called once per frame
void Update()
{
//Checking for the Currentpage
var theSelectedPageIs = hss.CurrentPage;
}
Thanks for the feedback @pdeclercq , Can you log an issue on the bitbucket with replication steps and of possible a demo scene showing the issue.
I'm not 100 % sure how to replicate it, i can't send a demo because as i said i found a solution (and didn't really think things through), but the main point is, if you move to a index using GoToScreen(index) while the scrolling is decelerating, it can go to the index + 1 or - 1 depending on the velocity (left to right / right to left)
Simply query the CurrentPage variable of the HorrizontalScrollSnap component, as follows:
public HorizontalScrollSnap hss; // Start is called before the first frame update void Start() { hss = GetComponent<HorizontalScrollSnap>(); } // Update is called once per frame void Update() { //Checking for the Currentpage var theSelectedPageIs = hss.CurrentPage; }
oh I understand now, Thanks a lot. I was trying to reference the variable directly in HSS script.