Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: jeffpk on March 07, 2014, 01:21:38 PM

Title: Dynamic scrolling grid: 3 problems
Post by: jeffpk on March 07, 2014, 01:21:38 PM
Hi All:

I'm trying to build at run time what is basically the same as a selection grid in a scroll view in OnGUI.

I'm having 2 problems:

(1)  The images don't show until I resize the window
(2)  Id like the grid to anchor to the left side, currently it float right as I make the window bigger

As an added thing, id really like the grid an its images to scale down as i scale down the window.  I want a vertical list but ideally scaled to fit the horizontal dimension

Image attached below.



Title: Re: Dynamic scrolling grid: 3 problems
Post by: jeffpk on March 07, 2014, 04:20:46 PM
Well, I changed my design to better fit what I could get NGUI to do. 

Thats annoying but there you go.
Title: Re: Dynamic scrolling grid: 3 problems
Post by: ArenMook on March 08, 2014, 12:31:17 PM
Scroll views have an origin point you can set. If you want it to be on the left side, then choose it to be left.

Images not showing up makes me wonder what version of NGUI you have...
Title: Re: Dynamic scrolling grid: 3 problems
Post by: jeffpk on March 18, 2014, 10:59:52 AM
Thanks, i got it working  well enough.

As for version, unfortunately I have made some changes to NGUi internals so upgrading isn't easy right now.  In specific, I hacked in a soft cursor because I needed it to make NGUi respond correctly with the Oculus RIFT.