Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Game Whiz on August 08, 2012, 03:56:37 AM
-
Hi,
In one of my GUI's panels I'm placing a non NGUI object (a skinned mesh). Is there a way to allow this skinned mesh to be clipped by the shader the panel uses?
BR,
Alex
-
2D clipped shader can't be used in 3D objects.
But, you can use another camera like "Example 8 - Scroll View (Camera)" did.
-
This is a "special" skinned mesh, in that all polys in it are coplanar (to simulate 2d). I don't want to use a UIViewport because I need to move this panel offscreen.
-
Clipping is done by the UIpanel, so if the UIPanel isn't drawing it, you can't directly clip it. You can do other stuff, like resize the viewrect of the camera to the same as the other clip area or use a rendertexture.
-
Thanks, for some reason I didn't even remember about rendertextures. That should do it.