Author Topic: Clipping planes + adjustable resolution  (Read 2398 times)


  • Guest
Clipping planes + adjustable resolution
« on: June 10, 2012, 11:09:15 PM »
First post here. 8)  I'm loving NGUI and its automatic "just works" nature and feel of the system.

The only stumbling block I've run across is that I find it difficult to make GUI setups that aren't static in size.  All the examples are static sized GUI boxes in the center of the screen, for example (aside from sliced sprite backgrounds).

The issue I'm running into is I would like to make a menu that takes up the left side of the screen and has items scrolling inside.  Setting up the background to take the left side of the screen is easy with a sliced sprite + the new stretch script.  However, I can't figure out how to set up the clipping plane of that panel to always fit the left side of the screen.  It seems to only be a static number in the native adjustment fields making it not work at all with adjustable resolutions, and alternatively adjusting the clipping bounds of the panel via script seems to set NGUI's automatic internal systems on fire.

Any ideas on how to get a UIStretch style system for a panel's clipping bounds?

Thanks in advance!
- Lev