Hi,
I received an app to develop within a week, for IOS and Android. It's mainly a portrait app including a menu and 2 sets of text+img pages that you flick throught + somes videos. I ve been suggested to use NGUI to facilitate that multiplatform work.
Yesterday, I've learned the basics of NGUI, got the storyboard of the app ready, set up Unity android, and got the project hierarchy ready to go.
The App will be composed by: - a Tiled sprite for the background
- Main menu:
- Top left corner button (setup with anchor top left)
- Top right corner button (setup with anchor top right)
- Top Logo (setup with anchor top)
- Two images in the center + title(2x) + Play video buttons(2x)
- Bottom full width button "Information"
- The Two sets of pages:
- Top left corner button (Back to Menu) (setup with anchor top left)
- Center filled with text and/or images
- Bottom full width button "Play Video"
The app is fully 2D, 3D real time scenes will be inserted at later day but it's not important atm, i won't need NGUI for them.
Problems and questions:- The buttons doesn't have an editable pivot point like the labels and slicedSprites. If I use an UIAnchor on the button, stick it to the bottom and use an Offset to have the button fully displayed, the offset doesn't fit the different ratio and resolutions (iphone 4/5,androids,iPad SD/HD). What would be the easiest way to do that?
- Is there a way to sort of scale the labels, buttons etc depending on the resolution and screen density?
- I'm using fingergesture and I would like to do the transitions between pages like the transitions between the different desktop screen of the ipad/iphone. I've got the idea of how to do it, and I know how to script it. But NGUI-wise how should I do that?
My idea was to always have 3 pages ready, the screen one + one on each side of the screen and then swap the text and images inside. I would set the standard position of the 3 pages and use a panel composed with all the pages inside and use that 3 times (each page) and just turn on and off the right labels and images.
How should I set up that in NGUI? Use a unity animation for the page slide and control it with the delta of the finger movement? like the Draggable windows example? like the Scroll view panel example?
- The anchors stick the objects regarding the camera position, in that case, how can my 3 panels system could work ? Should I do it like the Scroll View camera example and have all the pages set up as panels and flick through all of them? In that case how can I switch between page 5 and the main menu?
More questions will be added, as I'm working on the project.
I've attached a mockup screenshot of the main menu
Thanks a lot for the help.
(That post allows me to think out loud too so I might found the answers as I write the questions

)