Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - NikolayLezhnev

Pages: [1]
NGUI 3 Support / iOS style page switching for NGUI (demo and sources)
« on: August 12, 2014, 06:20:59 AM »
Hello, I made iOS style page switching for NGUI.

It's work similar to iOS desktop pages - you can change page by drag or by fast swipe.
You can see demo here:

How to use it:
1. Open new unity project
2. Import NGUI 3.6.8 unity package
3. Import "IosStylePageSwitcher.unitypackage"
4. Open scene IosPageSwitcher.scene and hit 'Play' button

I hope to see this functionality in future releases or NGUI.

NGUI 3 Support / NGUI - real WYSIWYG in scene view
« on: June 27, 2014, 03:41:11 AM »
Unity in editor mode with active 'SceneView' and hidden 'GameVeiw' always report Screen.width and Screen.height as 640x480. Camera.pixelRect also return rect with the same size. Camera.ViewportToWorldPoint and Camera.ScreenToWorldPoint return result for 640x480.
You can see this problem in video:
As result, in 'Scene view' you have different NGUI UI image, not the same as GameView.
To fix this behaviour, I made changes in NGUITools.cs, UIRoot.cs and UIAnchor.cs (see attached NguiWysiwig2.diff)
And I added AlignCameraToUI - it's constraints 'Scene View' camera to UI bounds and give you exactly the same picture, as 'Game View'. You can Turn on/off it in menu "NGUI/Extras/Enable Align to camera to UI"
I hope to see similar changes in next releases of NGUI.
Sorry for poor english.

Pages: [1]