I'm trying to use GUI.BeginGroup() to clip an area of the GUI where the inner elements can be rotated or scaled. For doing that I change the GUI.matrix. But when I do that the clipping doesn't work.
Anyone knows a way to avoid this problem without removing the use of GUI.matrix?
The code that make the problems:
No, it isn't possible since the matrix transformations are applied after the clipping. GUI.matrix isn't really useful in most cases. I'm not sure if you can replace the default shader that renders the GUI layer but if it's possible that would be a way to implement your own clipping.
answered Jul 13 '11 at 01:38 PM